
@font-face {
    font-family: "Scriptina";
    src: url(Fonts/SCRIPTIN.ttf);
    font-display: swap;
}


.forty {
    font-family: "Scriptina", cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.5;
    margin-bottom: 0.1em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.gradient-text {
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: bold;
    background: linear-gradient(to right,
            #3d5a60,
            #5E7F86,
            #8faeb3,
            #4a6b70);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    max-width: 100%;
}

.industrial-cabinet {
    max-width: 1100px;
    margin: 100px auto;
    padding: 60px 40px;
    box-sizing: border-box;

    background-color: #1a1918;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0),
        linear-gradient(to right, #242220 1px, transparent 1px);
    background-size: 32px 32px;

    border: 16px solid #292624;
    outline: 3px dotted #121110;
    outline-offset: -10px;

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 40px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(96, 129, 138, 0.25);
    border-radius: 6px;
    width: calc(100% - 40px);
}

.machinery-plaque {
    text-align: center;
    background: linear-gradient(135deg, #e3d9c3 0%, #c2b295 100%);
    padding: 25px 20px;
    margin-bottom: 50px;
    border: 4px solid #4a3e35;
    box-shadow:
        inset 0 3px 10px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.4),
        0 0 0 1px #d9cdb4;
    border-radius: 2px;
}

.machinery-plaque h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    /* FIX: fluid type */
    color: #1a1512;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.machinery-plaque h2::after {
    content: " ⚙ • ⚜ • ⚙ ";
    display: block;
    font-size: 1rem;
    color: #60818A;
    margin-top: 8px;
    letter-spacing: 4px;
}

.machinery-plaque p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #3b332d;
    margin: 12px 0 0 0;
    font-style: italic;
}

.cabinet-drawer-unit {
    margin-bottom: 25px;
    background-color: #121110;
    border-radius: 4px;
    border: 1px solid #292624;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cabinet-drawer-unit:last-child {
    margin-bottom: 0;
}

.lever-handle {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    letter-spacing: 1px;
    cursor: pointer;
    padding: 20px 30px;
    min-height: 44px;

    background: linear-gradient(to bottom, #bf9c40 0%, #8c6d1c 100%);
    border: none;
    border-bottom: 4px solid #544110;
    color: #121110;
    font-weight: bold;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

.lever-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a3c19;
    margin-right: 18px;
    flex-shrink: 0;
    display: inline-block;
    border: 2px solid #121110;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.lever-handle:hover,
.lever-handle:focus-visible {
    background: linear-gradient(to bottom, #60818A 0%, #3d565d 100%);
    border-bottom-color: #233337;
    color: #ffffff;
    outline-offset: 0;
}

.lever-handle:hover .lever-indicator,
.lever-handle:focus-visible .lever-indicator {
    background-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

.lever-handle.active {
    background: linear-gradient(to bottom, #242220 0%, #171615 100%);
    color: #bf9c40;
    border-bottom: 1px solid #121110;
    padding-top: 22px;
    padding-bottom: 18px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.8);
}

.lever-handle.active .lever-indicator {
    background-color: #60818A;
    border-color: #90b3bc;
    box-shadow: 0 0 12px 4px rgba(96, 129, 138, 0.8), 0 0 4px rgba(255, 255, 255, 0.9);
}

.drawer-vault {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.5s ease;
    background-color: #0d0c0c;
    box-sizing: border-box;
}

.drawer-vault.active {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    padding: 35px;
    box-shadow: inset 0 15px 30px rgba(0, 0, 0, 0.95);
    border-top: 2px solid #121110;
}

.specimen-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 250px;
    gap: 25px;
    height: auto;
}

.specimen-frame {
    position: relative;
    overflow: hidden;
    border: 10px solid #ede8d0;
    outline: 2px solid #42382c;
    box-shadow:
        5px 10px 25px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #ede8d0;
}

.specimen-frame.large {
    grid-row: span 2;
}

.specimen-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: sepia(0.35) contrast(1.15) brightness(0.85);
}

.specimen-frame:hover img,
.specimen-frame:focus-within img {
    transform: scale(1.04);
    filter: sepia(0) contrast(1) brightness(1);
}


.dateTimeWrapper {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 400px;
}

.victorian-calendar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4em;
    padding: 2.5em 2em;
    background: linear-gradient(135deg, #e3d9c3 0%, #c2b295 100%);
    font-family: 'Garamond', Georgia, serif;
    text-align: center;
    border: 2px solid #5E7F86;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    min-height: 300px;
    width: 100%;
    box-sizing: border-box;
    margin: 1em auto;
    overflow: visible;
}

.event-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.6em;
    color: #2b2b2b;
    font-weight: 600;
}

.victorian-calendar::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-top: 3px solid #5E7F86;
    border-left: 3px solid #5E7F86;
}

.victorian-calendar::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-top: 3px solid #5E7F86;
    border-right: 3px solid #5E7F86;
}

.victorian-calendar>span:last-child::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #5E7F86;
    border-left: 3px solid #5E7F86;
}

.victorian-calendar>span:last-child::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #5E7F86;
    border-right: 3px solid #5E7F86;
}

.victorian-calendar .calendar-day {
    font-size: clamp(1.6em, 4vw, 2.2em);
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.calendar-date {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin-bottom: 0.5em;
}

.victorian-calendar .calendar-month {
    display: block;
    font-size: clamp(1.4em, 3.5vw, 1.8em);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.victorian-calendar .calendar-year {
    font-size: clamp(2em, 5vw, 2.6em);
    color: #4a4a4a;
    display: block;
    line-height: 1.2;
}

.victorian-calendar .calendar-icon {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    opacity: 0.7;
    margin-top: 0.4em;
}

.victorian-calendar .calendar-time {
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: #555;
    display: block;
    line-height: 1.4;
}

.extravaganza-page .ulWrapper {
    margin-top: 5vh;
    margin-top: 5svh;
}

.bgtWrapper {
    width: 50px;
    height: auto;
}

.bgtImg {
    object-fit: cover;
    width: 100%;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(13, 12, 12, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-overlay.show {
    display: flex;
    animation: vaultFadeIn 0.3s ease forwards;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
    border: 16px solid #ede8d0;
    outline: 2px solid #60818A;
    outline-offset: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    background-color: #ede8d0;
    animation: framePop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: linear-gradient(to bottom, #bf9c40 0%, #8c6d1c 100%);
    border: 1px solid #544110;
    border-radius: 4px;
    color: #121110;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: linear-gradient(to bottom, #60818A 0%, #3d565d 100%);
    color: #ffffff;
    border-color: #233337;
}


@keyframes vaultFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes framePop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.specimen-card {
  display: flex;
  flex-direction: column;
  background-color: #ede8d0; 
  padding: 10px;
  border: 1px solid #d4ccb0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 2px;
}

/* The name tag text */
.specimen-label {
  margin-top: 10px;
  text-align: center;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: #233337;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ── Tablet (≤800px) ── */
@media only screen and (max-width: 800px) {
    .victorian-calendar .calendar-day {
        font-size: 1.7em;
    }

    .victorian-calendar .calendar-month {
        font-size: 1.5em;
    }

    .extravaganza-page .ulWrapper {
        margin-left: 40px;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .industrial-cabinet {
        margin: 50px 12px;
        padding: 25px 15px;
        border: 8px solid #292624;
        width: calc(100% - 24px);
    }

    .machinery-plaque {
        margin-bottom: 30px;
        padding: 18px 15px;
    }

    .machinery-plaque h2 {
        font-size: 1.4rem;
    }

    .lever-handle {
        padding: 15px 18px;
        font-size: 0.95rem;
    }

    .drawer-vault.active {
        padding: 15px;
        max-height: 3000px;
    }

    .specimen-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .specimen-frame {
        height: 240px;
        border-width: 6px;
    }

    /* Lightbox mobile */
    .lightbox-overlay {
        padding: 15px;
    }


    .lightbox-content {
        display: grid;
        place-items: center;
        max-width: 95vw;
        max-height: 85vh;
        width: auto;
        height: auto;
        border: 6px solid #ede8d0;
        outline: 2px solid #60818A;
        outline-offset: 3px;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.85);
        background-color: #ede8d0;
        box-sizing: border-box;
    }

    .lightbox-close {
        position: absolute;
        top: 40px;
        right: 50px;
        bottom: auto;
        transform: none;
        padding: 12px 26px;
        font-size: 0.95rem;
    }



}

/* ── Mobile (≤600px) ── */
@media only screen and (max-width: 600px) {
    .extravaganza-page .ulWrapper {
        margin-left: 20px;
    }

    .dateTimeWrapper {
        width: 95%;
    }

    .victorian-calendar {
        padding: 1.5em 1em;
        min-height: 250px;
    }
}

/* ── Small mobile (≤480px) ── */
@media screen and (max-width: 480px) {
    .victorian-calendar .calendar-day {
        font-size: 1.8em;
    }

    .victorian-calendar .calendar-month {
        font-size: 1.8em;
    }

    .victorian-calendar .calendar-year {
        font-size: 1.8em;
    }

    .victorian-calendar .calendar-icon {
        font-size: 1.3em;
    }

    .victorian-calendar .calendar-time {
        font-size: 1.2em;
    }

}

/* ── Landscape phone ── */
@media only screen and (max-height: 430px) and (orientation: landscape) {
    .industrial-cabinet {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .victorian-calendar {
        min-height: auto;
        padding: 1em;
    }

    .lightbox-overlay {
        padding: 8px;
        align-items: center;
    }

    .lightbox-content {
        max-height: 95vh;
        max-width: 80%;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        bottom: auto;
        transform: none;
        padding: 6px 14px;
    }
}