/* Refer {club}.css for override value   */
:root {
    --bg-color: #f5c264; /* Background color */
    --text-color: #323432; /* Text color */
    --sub-Header-text-color: #3033da; /* Sub header text color */
    --hover-bg-color: #f6d691; /* Background color on hover */
    --hover-text-color: #212222;
}

h1 {
    font-size: 1.75rem; /* 4xl */
    font-weight: 700;   /* bold */
    color: #111827;     /* gray-900 */
    margin-bottom: 1.2em; /* Space after, proportional to font size */
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}

h2 {
    font-size: 1.6rem; /* 3xl */
    font-weight: 600;    /* semibold */
    color: #1f2937;      /* gray-800 */
    margin-bottom: 1.1em; /* Slightly smaller spacing */
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}

h3 {
    font-size: 1.4rem; /* 2xl */
    font-weight: 500;  /* medium */
    color: #374151;    /* gray-700 */
    margin-bottom: 1em; /* Proportional to font size */
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}

html, body {
    overflow-y: auto; /* Ensure this is not set to 'hidden' */
}

.phc-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: #f1f5f9;
    color: var(--text-color, #334155) !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px !important;
    border: 1px solid #cbd5e1;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.phc-help-btn:hover {
    background-color: var(--hover-bg-color, #D8F6FB) !important;
    color: var(--hover-text-color, #212222) !important;
}

.phc-tiptap-content {
    color: #000000;
    font-size: 1rem;
    line-height: 1.5;
}

.phc-tiptap-content > * + * {
    margin-top: 1.125rem;
}

.phc-tiptap-content .lead {
    font-size: 1.375rem;
    line-height: 1.3;
    color: inherit;
}

.phc-tiptap-content .lead p,
.phc-tiptap-content p.lead {
    margin-bottom: 0;
}

.phc-tiptap-content h1,
.phc-tiptap-content h2,
.phc-tiptap-content h3,
.phc-tiptap-content h4,
.phc-tiptap-content h5,
.phc-tiptap-content h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.phc-tiptap-content h1 {
    font-size: 2rem;
}

.phc-tiptap-content h2 {
    font-size: 1.75rem;
}

.phc-tiptap-content h3 {
    font-size: 1.5rem;
}

.phc-tiptap-content p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.phc-tiptap-content strong {
    font-weight: 700;
}

.phc-tiptap-content p + p {
    margin-top: 1.125rem;
}

.phc-tiptap-content p:has(> a[data-as-button="true"]) {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.phc-tiptap-content ul,
.phc-tiptap-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.phc-tiptap-content a {
    color: #2563eb;
    text-decoration: underline;
}

.phc-tiptap-content a[data-as-button="true"],
.phc-tiptap-content a[as_button="true"] {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
}

.phc-tiptap-content a[data-as-button="true"][data-as-button-theme="primary"],
.phc-tiptap-content a[as_button="true"][button_theme="primary"] {
    background-color: #2563eb;
}

.phc-tiptap-content a[data-as-button="true"][data-as-button-theme="secondary"],
.phc-tiptap-content a[as_button="true"][button_theme="secondary"] {
    background-color: #d97706;
}

.phc-tiptap-content a[data-as-button="true"][data-as-button-theme="tertiary"],
.phc-tiptap-content a[as_button="true"][button_theme="tertiary"] {
    background-color: #16a34a;
}

.phc-tiptap-content a[data-as-button="true"][data-as-button-theme="accent"],
.phc-tiptap-content a[as_button="true"][button_theme="accent"] {
    background-color: #dc2626;
}

.phc-tiptap-content a[data-as-button="true"]:not([data-as-button-theme]),
.phc-tiptap-content a[data-as-button="true"][data-as-button-theme=""] {
    background-color: #111827;
}

/* Utility: apply club primary/background & header text colors if variables available */
.custom-primary-color {
    background-color: var(--header-bg-color, var(--bg-color, #d7d9dc));
    color: var(--header-text-color, var(--text-color, #1f2937));
}

/* Tooltip inner styles */
.tooltip-inner {
    background-color: var(--tooltip-bg-color, #4b6fb7) !important;
    border-color: var(--border-color, #828387);
    color: var(--text-color, #1f2937);
}

/* Polaroid styles */
.polaroids-container {
    /* display: flex !important;;   CAUSING MAJOR PROBLEMS WITH PANEL DROPDOWNS FOR JUDGING  */
    flex-wrap: wrap; /* Allows items to wrap to a new line */
    justify-content: flex-start; /* Aligns items to the left */
    gap: 15px; /* Space between items */
    width: 100% !important; /* Ensure full width */
    max-width: 100%;
}
.polaroid {
    border: 1px solid #4b5563 !important;
    position: relative;
    border-radius: 10px;
    /* width :280px; */
    max-width: 100%;
    flex: 1 1 calc(25% - 20px) !important; /* Ensures 4 per row */
    max-width: 255px; /* Keeps them from stretching */
    min-width: 200px; /* Prevents items from getting too small */
    margin-bottom: 20px; /* Equivalent to mb-5 */
    width: auto !important;
    /* Allow the card to grow to fit content (e.g., two-line titles) */
    min-height: 330px;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    /* border: 2px solid #ddd; */
    --polaroid-bg-start: #f3f3f3;
    --polaroid-bg-end: #ffffff;
    --polaroid-bg-scale: 1;
    background-color: var(--polaroid-bg-start);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
.polaroid-upload {
    /* Taller baseline for upload cards; still flexible */
    min-height: 500px;
    /* Avoid large gaps by aligning content to the top instead of spacing out */
    justify-content: flex-start !important;
    gap: 8px;
}

/* More compact card used for CLOSED entries (no upload/title rows) */
.polaroid-closed {
    min-height: 380px; /* roughly two rows shorter than upload version */
    justify-content: flex-start;
    gap: 8px;
}



.polaroid-text-member {
    color: var(--text-color, #1f2937);
    /* border:1px solid black; */
    width: 100%;
}


.polaroid-image {
    --polaroid-image-border-color: #4b5563;
    width: auto; /* Let width adjust based on height */
    max-height: 300px; /* Restrict the height of the image */
    max-width: 100%;
    max-width: 100%; /* Prevent stretching beyond the drop-zone width */
    object-fit: contain; /* Maintain aspect ratio and fit within the drop-zone */
    object-position: center; /* Center the image within the drop-zone */
    margin: auto; /* Center the image */
    border: 1px solid var(--polaroid-image-border-color);
    border-radius: 4px;
    box-sizing: border-box;
}
.polaroid-image-container {
    height: 220px;       /* This limits image height */
    width: 100%;
    display: flex;
    align-items: top;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}


.polaroids-border {
    border-color: var(--border-color, #828387);
    margin-top: 16px; /* Equivalent to mt-4 */
}

.block-border {
    border: 2px solid var(--header-bg-color, #4b6fb7);
}

.Exhibition-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 1rem;
    background-color: var(--bg-color, #d7d9dc);
    color: var(--sub-Header-text-color, #4b5563);
    border-color: var(--border-color, #828387);
    border-width: 0.05rem;
    border-radius: 0.3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

/* Apply the gradient to the actual visible header blocks.
   Use fallbacks so the gradient still works even when variables aren't inherited. */
.Exhibition-type-header,
.exhibition-type-header {
    background-color: var(--bg-color, var(--polaroid-bg-start, #f3f3f3)) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.Exhibition-header:hover {
    background-color: var(--hover-bg-color, #a1a7ae);
    color: var(--hover-text-color, #1f2937);
}
.Exhibition-text {
    font-size: 1.3rem;
    color: var(--text-color, #1f2937);
}

/* Dashboard: HeaderMessage block and spacer (keeps a consistent blank line when no message) */
.dashboard-header-message,
.dashboard-header-message--spacer {
    display: block;
    margin: 0.25rem 0 0.75rem;
}

.dashboard-header-message--spacer {
    min-height: 1.35em;
}
.Exhibition-Type-text {
    font-size: 1.2rem;
    width: 120px;
}

.Exhibition-type-header {
    width: 100%; /* Ensures it takes full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color, #4b6fb7);
    color: var(--sub-Header-text-color, #4b5563);
    border-radius: 0.3rem;
    border-color: var(--border-color, #828387);
    border-width: 0.05rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.Exhibition-type-header div {
    width: 100%; /* Ensure child div takes full width */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Exhibition-type-header span {
    flex-grow: 1; /* Allows it to stretch fully */
}


.Exhibition-Type-text {
    font-size: 1.2rem;
}

.infoheader {
    /* Shared surface for header/footer */
    background-color: var(--club-header-surface);
    color: var(--header-text-color, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

/* Force matte header styling even if club-specific CSS overrides `.infoheader`.
   This targets the exact markup used on the dashboard header strip. */
.custom-primary-color.infoheader {
    background-color: var(--club-header-surface);
    color: var(--header-text-color, var(--text-color, #1f2937));
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

/* Default (works everywhere): use the club header color, else bg color, else fallback */
:root {
    --club-header-base: var(--header-bg-color, var(--bg-color, #4b6fb7));
    --club-header-surface: var(--club-header-base);

    /* Reusable surface based on the general background color */
    --club-bg-base: var(--bg-color, #d7d9dc);
    --club-bg-surface: var(--club-bg-base);
}
.footer-color {
    background-color: var(--club-header-surface);
}

.icon-button {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #4a5568; /* Tailwind's text-gray-700 */
}

.icon-button:hover {
    color: #1a202c; /* Tailwind's text-gray-900 */
}

.Exhibition-type-header:hover {
        background-color: var(--hover-bg-color, #d1d5db);
        color: var(--hover-text-color, #1f2937);
}
  .red-text {
    color: red;
}


.exhibition-content {
    background-color: #fff;
    padding: 16px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Judging on a mobile device */
.exhibition-container {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 40px 20px 20px 20px;  /* Reduce top padding */
    width: 98%;
    max-width: 1280px;
    margin: 20px auto;
    text-align: left;  /* Align text to the left */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exhibition-container h1 {
    position: absolute;
    top: 10px;  /* Adjust top position */
    left: 10px;
    margin: 0;
    font-size: 24px;  /* Adjust font size if needed */
}

.exhibition-container h2 {
    font-size: 20px;  /* Adjust font size if needed */
}

.columns {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 columns by default */
    gap: 20px;  /* Add space between columns */
    margin-top: 10px; /* Reduce margin between H1 and columns */
}

.column-heading {
    display: flex;
    flex-direction: column;
    width: 100%; /* Use 100% of the available width */
    margin-bottom: 20px; /* Adjust as needed */
    box-sizing: border-box;
}

.column-content {
    margin: 0 0 10px; /* Add space between divs */
    text-align: left; /* Ensure left justification */
    font-size: 16px; /* Adjust font size if needed */
}

.ExhibTypes {
    display: flex;
    flex: 1 1 100%;  /* Ensure column takes full width */
    max-width: 100%;
}

.exhibition-details {
    margin-top: 0;  /* Ensure no extra margin at the top */
    font-size: 16px;
}

.ExhibTypesDetails {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust spacing between groups */
}

.ExhibTypesDetails div {
    margin: 0 0 10px;  /* Add space between divs */
    text-align: left;  /* Ensure left justification */
    font-size: 16px;   /* Adjust font size if needed */
}

.detail-item-row {
    display: flex;
    flex: 1 1 48%; /* Ensure each group takes up approximately half the width */
    flex-direction: column;
    margin-bottom: 10px;
}

/* Adjustments for smaller screens */
@media (max-width: 1200px) {
    .columns {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (max-width: 992px) {
    .columns {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

@media (max-width: 768px) {
    .columns {
        grid-template-columns: 1fr; /* 1 column for mobile screens */
    }
    .exhibition-container {
        padding-top: 70px;  /* Reduce top padding for mobile */
    }

    .exhibition-container h1 {
        font-size: 20px;  /* Decrease font size of H1 */
    }

    .exhibition-details {
        font-size: 14px;  /* Decrease font size of details */
        margin-top: 10px;  /* Ensure top margin for more spacing */
    }

    .ExhibTypesDetails div {
        font-size: 14px;  /* Decrease font size of right column content */
    }

    .column-heading,
    .ExhibTypes {
        flex: 1 1 100%;  /* Ensure columns take full width on mobile */
        max-width: 100%;  /* Ensure columns take full width on mobile */
    }

    .column-content {
        font-size: 14px; /* Decrease font size of content on smaller screens */
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .polaroid {
        flex: 1 1 calc(33.33% - 20px); /* 3 per row on smaller screens */
    }
}

@media (max-width: 992px) {
    .polaroid {
        flex: 1 1 calc(50% - 20px); /* 2 per row on tablets */
    }
}

@media (max-width: 768px) {
    .polaroid {
        flex: 1 1 100%; /* Full width for mobile */
    }
}
/* Additional styling */
.exhibition-container {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px 20px 20px 20px;  /* Reduce top padding */
    width: 98%;
    max-width: 1280px;
    margin: 10px auto;
    text-align: left;  /* Align text to the left */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exhibition-container h1 {
    position: absolute;
    top: 10px;  /* Adjust top position */
    left: 10px;
    margin: 0;
    font-size: 24px;  /* Adjust font size if needed */
}

.ExhibTypesDetails div {
    margin: 0 0 10px;  /* Add space between divs */
    text-align: left;  /* Ensure left justification */
    font-size: 16px;   /* Adjust font size if needed */
}

/* Display the images in a set format (flex) and with a ribbon */
.container {
    margin: 10px auto;
    padding: 10px;
    display: grid;
    justify-content: start;
    grid-template-columns: repeat(auto-fill, minmax(174px, 283px));
    gap: 10px;
    margin-left: 15px;
    grid-auto-rows: minmax(140px, auto);
}

.Header1 {
    font-weight: bold;
    background: rgb(162, 163, 163);
    color: #fff;
    font-size: 20px;
    vertical-align: middle;
    display: flex;
    padding: 5px;
    border: skyblue 1px solid;
    overflow-wrap: break-word;
    border-radius: .5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ribbon {
    position: absolute;
    right: -5px; top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px; height: 75px;
    text-align: right;
}
.ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px; right: -21px;
}
.ribbon a:link { text-decoration: none; color:white; }
.ribbon a:active { text-decoration: none; }
.ribbon span::before {
    content: "";
    position: absolute; left: 0px; top: 100%;
    z-index: -1;
    border-left: 3px solid #8b8989;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8b8989;
}
.ribbon span::after {
    content: "";
    position: absolute; right: 0px; top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #8b8989;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #8b8989;
}
/* Container for all three rows */
.grid-container {
    display: grid;
    /* three tracks: left flexible, center auto, right flexible */
    grid-template-columns: 1fr auto 1fr;
    /* horizontal gap between columns */
    column-gap: 1px;
    /* vertical gap between rows */
    gap: 0.10rem 1px;
    width: 100%;
    overflow: visible;      /* allow spanning cells to bleed out */
    position: relative;
  }

  /* Generic grid item styling */
  .grid-item {
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    /* remove any `width: 100%` so they size to their tracks */
  }

  /* Alignment helpers */
  .left  { justify-content: flex-start; }
  .mid   { justify-content: center; }
  .right { justify-content: flex-end; }

  /* Date row: spans all three columns and won’t wrap */
  .span-all {
    grid-column: 1 / -1;    /* from first grid line to last */
    position: relative;
    z-index: 1;             /* sit above left/right cells */
    white-space: nowrap;    /* keep the date on one line */
  }


.max-w-7xl {
    position: relative;
}

.navigation-arrows {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px; /* Height of the navigation area */
}
.arrow-left, .arrow-right {
    font-size: 24px; /* Adjust the size of the arrows */
    color: #000; /* Arrow color */
}
.arrow-left {
    margin-left: -50px; /* Adjust based on actual layout and size */
}
.arrow-right {
    margin-right: -50px; /* Adjust based on actual layout and size */
}
#imageContainer {
    margin-top: 50px; /* Make space for the navigation arrows */
}
.disabled, .disabled:hover {
    color: #c0c0c0; /* Grey color */
    cursor: not-allowed; /* Shows a 'not-allowed' cursor when hovered */
    pointer-events: none; /* Prevents clicking on the link */
    text-decoration: none; /* Optional: Removes underline from the link */
}


.notification-stack {
    position: fixed !important;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
    width: max-content;
    max-width: min(92vw, 680px);
}

.notification-stack .popup-notification,
.notification-stack #popup-notification,
.notification-stack #popup-notification-warn,
.notification-stack #popup-notification-error {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto;
    margin: 0;
    display: block;
    max-width: min(92vw, 680px) !important;
    white-space: normal !important;
    word-break: break-word;
}

#popup-notification,
.popup-notification {
    position: fixed;
    top: 50px; /* Fallback when not in stack */
    left: 50%;
    transform: translateX(-50%);
    max-width: min(92vw, 680px);
    background: #68d391;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.18);
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.popup-notification-success {
    background-color: #5ece58 !important;
    color: #ffffff !important;
    border: 1px solid #48bb78 !important;
}

#popup-notification-warn,
.popup-notification-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border: 1px solid #d97706 !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.18);
}

#popup-notification-error,
.popup-notification-error {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
}

/*  This section used on main dashboard  for file uploads etc */
/* Center the upload section (Click to Select + Icons) */
/* Ensure upload text and delete icon are centered */
/* Ensure upload text and delete icon are on the SAME LINE & CENTERED */
/* Ensure upload text and delete icon are on the SAME LINE & CENTERED */
.upload-container {
    display: flex;
    justify-content: center; /* Centers the span horizontally */
    align-items: center; /* Ensures vertical centering */
    border: none;
    /* Slightly narrower than parent to avoid clipping inside card */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto; /* center horizontally */
    border-radius: 10px; /* Rounded corners */
}

.upload-text {
    display: flex; /* Makes it a flex container */
    cursor: pointer; /* Makes the entire text and icons clickable */
    justify-content: center; /* Centers text and icons inside */
    align-items: center; /* Aligns text and icons vertically */
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    width: fit-content; /* Shrinks to fit content */
    padding: 5px 10px; /* Adds some spacing */
}

/* Ensure icons are aligned correctly */
.upload-text i {
    margin-right: 2px;
    font-size: 18px;
    text-align: center;

}

/* Delete icon (Same Line as Upload Text) */
.delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: red;
    cursor: pointer;
}

/* Ensuring both elements align properly */
.upload-text, .delete-icon {
    display: inline-flex;
    align-items: center;
}



.drop-zone {
    width: 100%; /* Full width of the container */
    max-width: 300px; /* Adjust to match the maximum width for landscape images */
    height: 300px; /* Fixed height for the drop-zone */
       border: 2px solid #e2eefd; /* Blue border */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* White background for spacing */
    box-sizing: border-box; /* Include padding and border in width/height */
    overflow: hidden; /* Prevent content from overflowing */
}

.drop-zone img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: none !important;
    box-shadow: none !important;
}

/* Title container */
.title-container {
    border: none;
    /* Match upload box behavior and center within card */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    border-radius: 10px; /* Rounded corners */
}

/* Title Display Styling */
/* .title-text {
    border: 1px solid #5688b0 ;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: black;
    position: absolute;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px dashed rgb(166, 231, 166);
    border-radius: 10px;
    background: white;
    display: inline-block;
} */

/* Editable input field */
.title-input {
    display: none;
    width: 95%;
    min-height: 32px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #5688b0;
    background: white;
    color: black;
    outline: none;
    padding: 4px;
}

/* Spinner (Initially Hidden) */
.spinner-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}
.spinner-container img {
    width: 40px;
    height: 40px;
}

/* Placeholder effect */
.title-text.placeholder {
    color: lightgray;
    font-style: italic;
}


/* Center the title section */
.title-container {
    /* unify duplicate rule: responsive, centered */
    width: calc(100% - 22px);
    box-sizing: border-box;
    margin: 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

/* Title text */
/* .title-text {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: black;
    position: absolute;
} */




/* Editable Title Input */
.title-edit-container {
    display: none;
    width: 244px; /* Slightly smaller than text */
    min-height: 34px;
    background: white;
    border: 1px solid #5688b0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
}


/* Make sure title input fits inside title container */
.title-edit-container input {
    width: 100%;
    font-size: 18px;
    text-align: center;
    border: none;
    outline: none;
    padding: 2px;
}


/* Placeholder effect for title */
.title-text.placeholder {
    color: lightgray; /* Grey color for placeholder text */
    font-style: italic;
}

/* Title container for proper alignment */
.title-container {
    /* final duplicate cleanup to ensure consistent centering */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    border: none;
}

/* Title text (initial state) */
.title-text {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: black;
    position: relative;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px dashed rgb(166, 231, 166); /* Thinner dashed green border */
    border-radius: 10px; /* Rounded corners */
    background: white; /* Ensure it has a background */
    display: inline-block;
}

/* Placeholder styling (grey italic text) */
.title-text.placeholder {
    color: lightgray;
    font-style: italic;
}

/* Editable input field (hidden by default) */
.title-input {
    display: none;
    width: 100%;
    min-height: 30px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #5688b0;
    background: white;
    color: black;
    outline: none;
    padding: 5px;
}

/* Highlight missing titles (image uploaded but no title entered) */
.title-container.title-missing .title-text,
.title-container.title-missing .title-input {
    border-width: 2px;
    border-style: dotted;
    border-color: red;
    animation: title-missing-flash 1s linear infinite;
}

@keyframes title-missing-flash {
    0%, 40% {
        border-color: red;
    }
    50%, 90% {
        border-color: transparent;
    }
    100% {
        border-color: red;
    }
}

/* Upload button and delete icon spacing */
#title-del {
    margin-top: 5px;
    color: red;
    cursor: pointer;
}


/* Tooltip inner styles */
.tooltip-inner {
    font-size: 18px !important; /* Increase text size */
    min-width: 600px !important; /* Set minimum width (50% bigger than 400px) */
    background-color: var(--tooltip-bg-color) !important; /* Important to override bootstrap */
    border-color: var(--border-color) !important;
    color: var(--tooltip-text-color) !important; /* Set the font color and use !important to ensure it overrides */
    border-width: 0.05rem !important;
    border-radius: 0.5rem !important;
}
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--tooltip-bg-color) !important;
}
.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: var(--tooltip-bg-color) !important;
}
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--tooltip-bg-color) !important;
}
.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: var(--tooltip-bg-color) !important;
}

.tooltip-text {
    color: var(--tooltip-text-color, #0a0a0a); /* fallback color */
    font-size: 1.2rem;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    position: relative; /* optional, depending on layout */
}

@keyframes flashAnimation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.flash-red {
    color: red;
    animation: flashAnimation 1s infinite;
}

.d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Optional: removes underline from links */
}

.icon-link:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.no-underline {
    text-decoration: none;
    color: inherit; /* Optional: This keeps the text color the same as the surrounding text */
}

.flex-basis-50 {
    flex-basis: 48%;
}

[x-cloak] {
    display: none !important;
}
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
}

.member-button {
    display: inline-block;
    background-color: rgb(126 34 206); /* Replace with the actual footer color */
    color: #fff; /* Adjust text color for contrast */
    padding: 5px 10px; /* Minimal padding to keep it close to the text */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 14px; /* Adjust font size as needed */
    font-weight: bold;
    text-align: center;
}

.canned-navbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    background: var(--club-bg-surface);
    color: var(--header-text-color, var(--text-color));
    text-decoration: none;
    font-size: 16px;
    /* font-weight: bold; */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 80ms ease-in-out, box-shadow 120ms ease-in-out, background-color 120ms ease-in-out, color 120ms ease-in-out;
    will-change: transform;
}

.canned-navbutton--auto {
    width: auto;
}

.canned-navbutton--full {
    width: 100%;
}

.canned-navbutton--dropdown {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure dropdown buttons are fully opaque even if theme variables include alpha */
@supports (background-color: rgb(from white r g b / 1)) {
    .canned-navbutton--dropdown {
        background-color: rgb(from var(--club-bg-base) r g b / 1);
        color: rgb(from var(--header-text-color, var(--text-color)) r g b / 1);
    }

    .canned-navbutton--dropdown:hover {
        background-color: rgb(from var(--hover-bg-color) r g b / 1);
        color: rgb(from var(--hover-text-color) r g b / 1);
    }
}

.canned-navbutton:hover {
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.canned-navbutton--active {
    text-decoration: none !important;
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-button:hover {
    background-color: #c835e1; /* Darker shade for hover effect */
}
.exhibition-type-header {
    background-color: #89abef; /* Light gray background */
    color: #333; /* Dark text for better contrast */
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}
.exhibition-type-header:hover {
    background-color: #768bb4; /* Slightly darker on hover */
}

/* Container for Each Exhibition Type Block */
.exhibition-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1px;
}

/* Style for Entries Polaroids Container */
.polaroids-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 8px;
    padding: 5px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

/* Style for Individual Polaroid Item */
.polaroid-item {
    flex: 0 1 255px;
    max-width: 255px;
    min-width: 200px;
    box-sizing: border-box;
    padding: 2px;
}

/* Style for Polaroid Score Chip */
.polaroid-score-chip-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.polaroid-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 2px solid var(--score-chip-colour, rgba(0, 0, 0, 0.12));
    background: var(--score-chip-colour, rgba(255, 255, 255, 0.72));
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.16);
}

/* Style for Polaroid Comments Indicator and Tooltip */
.polaroid-comment-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.polaroid-comment-indicator {
    border: 2px solid #32cd32;
    background-color: #32cd32;
    color: #ffffff;
    width: 22px;
    height: 22px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.polaroid-comment-tooltip {
    display: none;
    position: fixed;
    min-width: 180px;
    max-width: 350px;
    background-color: var(--tooltip-bg-color, #D8F6FB);
    border: 1px solid var(--border-color, #828387);
    color: #111827 !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 30000;
    text-align: left;
    white-space: normal;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.polaroid-comment-tooltip,
.polaroid-comment-tooltip *,
.polaroid-comment-tooltip p,
.polaroid-comment-tooltip span,
.polaroid-comment-tooltip div {
    color: #111827 !important;
}

p {
    margin-bottom: 1rem;
}
