:root {
  --bottle-green-primary: #093624;
  --bottle-green-dark: #051D13;
  --bottle-green-medium: #0F4B2E;
  --bottle-green-light: #226248;
  --bottle-green-accent: #35785D;
  --sage-green: #68A58D;
  --mint-green: #87BBA7;
  --light-sage: #ABD2C2;
  --very-light-green: #D3E8E0;
}

/*───────────────────────────────────────────────────────────────────────────────
  1. GLOBAL TRANSITIONS & POINTER‐EVENTS
───────────────────────────────────────────────────────────────────────────────*/

/* Global transitions and hover effects */
.btn.btn-primary,
.back-to-top,
.explore-btn {
    transition: transform 0.4s;
}

.btn.btn-primary:hover,
.back-to-top:hover,
.explore-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Ensure image map areas are always interactive */
#back-wall-image {
    pointer-events: auto !important;
    max-height: calc(100vh - 15rem);
}

map area {
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

map area:hover {
    outline: 2px solid rgba(255, 0, 0, 0.5);
}

/*───────────────────────────────────────────────────────────────────────────────
  3. “EXPLORE BY COMPONENENTS" SLIDER
───────────────────────────────────────────────────────────────────────────────*/

#explore-by-components {
    min-height: 90vh;
    box-sizing: border-box;
    border-bottom: 1px solid #e9ecef;
    
    background: linear-gradient(135deg, 
    var(--bottle-green-primary) 20%,
    var(--bottle-green-medium) 10%, 
    var(--bottle-green-primary) 60%,
    var(--bottle-green-primary) 60%,
    var(--bottle-green-dark) 90%) !important;
}

#slider-section {
    margin: 30px auto;
    max-width: 1500px;
    border-radius: 10px;

    
}

#slider-section .accordion {
    height: 600px;
    max-width: 85%;
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

#slider-section .panel {
    flex: 0.3;
    border-radius: 6px;
    box-shadow: none;
    transition: flex 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
    cursor: pointer;
}

#slider-section .panel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

#slider-section .panel:hover, 
#slider-section .panel.active {
    flex: 2;
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#slider-section .panel.active {
    border: 2px solid #20c997;
    border-radius: 8px;
}

#slider-section .panel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    font-size: 17px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#slider-section .panel:hover .panel-caption,
#slider-section .panel.active .panel-caption {
    opacity: 1;
}

#slider-section .slider-nav {
    text-align: right;
    padding: 10px 30px;
}

#slider-section .slider-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/*───────────────────────────────────────────────────────────────────────────────
  5. BACK‐WALL PANEL SECTION
───────────────────────────────────────────────────────────────────────────────*/

#back-wall .container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.back-wall-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
}

.back-wall-panel {
    width: 22%;
    height: 90%;
    min-width: 90px;
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.back-wall-panel:hover {
    transform: scale(1.05);
}

.back-wall-panel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.back-wall-panel .zoom-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
}

.back-wall-panel .zoom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*───────────────────────────────────────────────────────────────────────────────
  6. RIGHT WALL PANEL SECTION
───────────────────────────────────────────────────────────────────────────────*/

#right-wall .right-wall-photos {
    display: flex;
    justify-content: center;
    column-gap: 8rem;
    align-items: flex-start;
    max-height: calc(100vh - 6rem);
    overflow: hidden;
}

/* ensure each img inside scales down to fit that max-height */
#right-wall .right-wall-photos img {
    max-height: calc(100vh - 6rem);
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

#right-wall .container > .row:first-of-type {
    display: flex;           
    justify-content: center;
    column-gap: 8rem;       
}

#right-wall-selector {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #007a3d;
    background-color: white;
    color: #007a3d;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

#right-wall-selector:hover {
    background-color: #f8f8f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.right-wall-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;}

.right-wall-panel-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-wall-panel {
    width: 100%;
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.right-wall-panel:hover {
    transform: scale(1.05);
}

.right-wall-panel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.right-wall-panel .zoom-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
}

.right-wall-panel .zoom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add zoom controls for right wall panels */
.right-wall-zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.zoom-level {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

/* Make the right wall modal image container support zooming */
.right-wall-modal-image-container {
    width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
    cursor: grab;
}

.right-wall-modal-image-container:active {
    cursor: grabbing;
}

/* Add transition for smooth zooming */
#right-wall-modal-image {
    transition: transform 0.2s ease;
    transform-origin: 0 0;
}

/* Reset button for zoom */
.zoom-reset {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
}

.zoom-reset:hover {
    background-color: rgba(255, 255, 255, 1);
}

/*───────────────────────────────────────────────────────────────────────────────
  7. VIDEO SECTIONS
───────────────────────────────────────────────────────────────────────────────*/

/* Hidden content sections */
#video,
#image-accordion,
#silhouettes,
#front-wall,
#back-wall,
#right-wall {
    display: none;
    transition: opacity 0.3s ease;

    background: linear-gradient(135deg, 
    var(--bottle-green-dark) 80%,
    var(--bottle-green-primary) 30%,
    var(--bottle-green-primary) 30%,
    var(--bottle-green-medium) 30%,
    var(--bottle-green-primary) 30%) !important;

    margin-bottom: 0 !important;

}

#video .container {
    max-width: 90%;
    background: transparent !important;
}

#video .row {
    display: flex;
    align-items: flex-start; /* Aligns the top of both videos */
}

#video .col-md-6 {
    padding: 0 15px;
}

#video h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #fff;
}

#video .video-container {
    margin-top: 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#video .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 8px;
}

@media (max-width: 767px) {
    #video .row {
        flex-direction: column;
    }
    
    #video .col-md-6:first-child {
        margin-bottom: 2rem;
    }
}

#video .ratio {
  position: relative !important;
  width: 70%;
  max-width: 750px;
  margin: 0 auto 2rem;
  aspect-ratio: 16/9;
}

#video .ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Style for the videos section cards if used */
#video .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

#video .card:hover {
    transform: translateY(-5px);
}

#video .card-body {
    padding: 1.5rem;
}

#video video {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Stand Section */
#stand-video-container {
    margin: 2rem auto;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

#stand-video-container video {
    width: 70%;
    height: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #000;
    display: block;
}

/*───────────────────────────────────────────────────────────────────────────────
  8. SILHOUETTES & IMAGE ACCORDION
───────────────────────────────────────────────────────────────────────────────*/

#silhouettes {
    padding: 0;
    margin: 0;
}

#silhouettes img {
    width: 100%;
}

/* Silhouette animation */
.silhouette {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.silhouette.show {
    opacity: 1;
    transform: translateY(0);
}

/* Image accordion section */
#image-accordion {
    width: 100%;
    padding: 3rem 0 1rem 0;
    display: flex;
    justify-content: center;
}

.accordion {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 665px;
    overflow: hidden;
    border-radius: 20px;
    gap: 5px;
    margin: 0 auto;         
    justify-content: center;
}

.accordion .panel {
    flex: 2;
    min-width: 80px;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.5s ease-in-out;
    position: relative;
    border-radius: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion .panel img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center center;
    background-color: white;
    transition: transform 0.5s ease-in-out;
    border-radius: 30px;
}

.accordion .panel:hover,
.accordion .panel.active {
    flex: 4;
}

.panel-name{
    position: absolute;
    left: 40px;
    top: 32%;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    white-space: nowrap;
    color: #000;
    font-family:'calibri', serif, 'Trebuchet MS', sans-serif;
    font-size: 25px;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;


}
.panel:hover .panel-name {
    opacity: 1;
}
.last-panel:hover,
.last-panel.active {
  flex: 6.5 !important;
}

/*───────────────────────────────────────────────────────────────────────────────
 9. CEILING PANELS (FLIP CARDS & MODAL)
───────────────────────────────────────────────────────────────────────────────*/

.ceiling-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.ceiling-row {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.ceiling-panel {
    position: relative;
    perspective: 1500px;
    border-radius: 15px;
}

.ceiling-panel.tall {
    width: 400px;
    height: 400px;
}

.ceiling-panel.short {
    width: 400px;
    height: 265px;
}

/* The panel flips in place when user clicks */
.panel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

/* This class is toggled to flip the card */
.ceiling-panel.flipped .panel-inner {
    transform: rotateY(180deg);
}

.panel-front,
.panel-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    object-fit: cover;
}

.panel-back {
    transform: rotateY(180deg);
}

.top-row {
    align-items: flex-start;
    margin-bottom: -65px;
}

.bottom-row {
    align-items: flex-end;
    margin-top: -65px;
}

/* Zoom icon for enlarging the panel */
.zoom-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    opacity: 0.8;
}

.zoom-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Adjust hover text to be bigger and centered */
.hover-flip-text {
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.ceiling-panel:hover .hover-flip-text {
    opacity: 1;
}

/*───────────────────────────────────────────────────────────────────────────────
 10. CEILING PANELS MODAL OVERLAY
───────────────────────────────────────────────────────────────────────────────*/

.ceiling-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

/* Fixed modal size for consistency */
.ceiling-modal-content {
    width: 1200px;
    height: 1200px;
    max-width: 90vw;
    max-height: 90vh;
    background-color: #212529;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Close button */
.ceiling-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    border: 2px solid #ccc;
    font-size: 30px;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* Navigation arrows */
.ceiling-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 46px;
    text-align: center;
    z-index: 10;
}

.ceiling-modal-nav-left {
    left: 25px;
}

.ceiling-modal-nav-right {
    right: 25px;
}

.ceiling-modal-nav:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Flip container inside the modal */
.flip-container {
    position: relative;
    bottom: 25px;
    width: 80%;
    max-width: 900px;
    height: 80%;
    max-height: 900px;
    perspective: 1000px;
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    backface-visibility: hidden;
    object-fit: contain;
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-container.flipped .flip-inner {
    transform: rotateY(180deg);
}

/* Flip button in modal */
.modal-flip-btn {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #20c997;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    z-index: 11;
}

.modal-flip-btn:hover {
    background-color: #17a185;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .ceiling-modal-nav {
        font-size: 30px;
        width: 40px;
        height: 40px;
        line-height: 36px;
    }

    .modal-flip-btn {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/*───────────────────────────────────────────────────────────────────────────────
 11. POPUP OVERLAY FOR ANY “ENLARGED” IMAGES (BACK‐WALL/CEILING, ETC.)
───────────────────────────────────────────────────────────────────────────────*/

/*───────────────────────────────────────────────────────────────────────────────
 PROFESSIONAL POPUP OVERLAY - CONSISTENT DESIGN
───────────────────────────────────────────────────────────────────────────────*/

.popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ===== FLIP CONTAINER FOR FRAMES 7-11 ===== */
.popup-flip-container {
    position: relative;
    width: 80vw;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.popup-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.popup-flip-container.flipped .popup-flip-inner {
    transform: rotateY(180deg);
}

.popup-flip-front,
.popup-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

}

.popup-flip-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.popup-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 40px;
    overflow-y: auto;
}

/* ===== DESCRIPTION CONTENT STYLING ===== */
.popup-description {
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
}

.popup-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ecf0f1;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #7f8c8d;
    padding-bottom: 10px;
}

.popup-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #bdc3c7;
    text-align: justify;
}

.popup-description .artwork-details {
    background: rgba(52, 73, 94, 0.4);
    border: 1px solid rgba(127, 140, 141, 0.3);
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
    backdrop-filter: blur(5px);
}

.popup-description .artwork-details h4 {
    color: #95a5a6;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(149, 165, 166, 0.3);
    padding-bottom: 8px;
}

.popup-description .artwork-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-description .artwork-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #bdc3c7;
    font-size: 0.95rem;
}

.popup-description .artwork-details li::before {
    content: "▪";
    color: #7f8c8d;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* ===== SIMPLE POPUP STYLING (FRAMES 1-6) ===== */
.popup-content .popup-image {
    width: 80vh;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}



/* ===== BUTTON STYLING ===== */
.popup-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.popup-flip-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
    border: 1px solid #7f8c8d;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-flip-btn:hover {
    background: linear-gradient(135deg, #3e5366 0%, #34495e 100%);
    border-color: #95a5a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-close,
.popup-content .close {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-close:hover,
.popup-content .close:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Remove emoji icons for professional appearance */
.popup-flip-btn::before,
.popup-close::before {
    display: none;
}

/* Simple close button specific styling */
.popup-content .close {
    margin-top: 15px;
    margin-bottom: 0;
    position: relative;
    z-index: 10001;
    min-width: 80px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .popup-flip-container {
        width: 95vw;
        height: 60vh;
        max-height: 500px;
        margin-bottom: 15px;
    }
    
    .popup-flip-back {
        padding: 25px;
    }
    
    .popup-description h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .popup-description p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .popup-description .artwork-details {
        padding: 15px;
        margin-top: 20px;
    }
    
    .popup-controls {
        gap: 10px;
    }
    
    .popup-flip-btn,
    .popup-close,
    .popup-content .close {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .popup-content .popup-image {
        max-width: 95vw;
        max-height: calc(85vh - 70px);
    }
}

@media (max-width: 480px) {
    .popup-flip-container {
        height: 55vh;
        max-height: 450px;
    }
    
    .popup-flip-back {
        padding: 20px;
    }
    
    .popup-description h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .popup-description p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .popup-description .artwork-details {
        padding: 12px;
        margin-top: 15px;
    }
    
    .popup-description .artwork-details h4 {
        font-size: 1.1rem;
    }
    
    .popup-description .artwork-details li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .popup-content .popup-image {
        max-width: 98vw;
        max-height: calc(80vh - 60px);
    }
    
    .popup-content .close {
        margin-top: 12px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ===== SMOOTH ANIMATIONS ===== */
.popup.show {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== LOADING STATE ===== */
.popup-flip-front img[src=""] {
    background: repeating-linear-gradient(
        45deg,
        #ecf0f1,
        #ecf0f1 10px,
        #bdc3c7 10px,
        #bdc3c7 20px
    );
    animation: loading 1.5s linear infinite;
}

@keyframes loading {
    0% { background-position: 0 0; }
    100% { background-position: 28px 28px; }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.popup-flip-btn:focus,
.popup-close:focus,
.popup-content .close:focus {
    outline: 2px solid #7f8c8d;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .popup-flip-back {
        background: #000;
        color: #fff;
    }
    
    .popup-description .artwork-details {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
    }
    
    .popup-flip-btn,
    .popup-close,
    .popup-content .close {
        border-width: 2px;
    }
}


/*───────────────────────────────────────────────────────────────────────────────
 12. MISCELLANEOUS / HELPERS
───────────────────────────────────────────────────────────────────────────────*/

/* Space between sections */
.spacer {
    height: 2rem;
}

/*───────────────────────────────────────────────────────────────────────────────
  13. UNIFIED PADDING FOR ALL “HIDDEN” PANELS
───────────────────────────────────────────────────────────────────────────────*/

#video,
#silhouettes,
#back-wall-panels,
#stand,
#front-wall,
#back-wall,
#right-wall {
    padding: 3rem ;
    background: linear-gradient(135deg, 
    var(--bottle-green-dark) 80%,
    var(--bottle-green-primary) 30%,
    var(--bottle-green-primary) 30%,
    var(--bottle-green-medium) 30%,
    var(--bottle-green-primary) 30%) !important;

    margin-bottom: 0 !important;
}


/* in by-components.css or your custom css */
#front-wall .front-media {
  width: 100%;
  /* leave room for your <h1> + <p> captions */
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}
#front-wall .front-inner {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
#front-wall .front-title {
  margin-bottom: 1rem;
}
#front-wall .front-media {
  flex: 1;
  object-fit: contain;
  width: 100%;
}
#front-wall .front-caption {
  margin: 1rem 0;
}

/* ===== INTERACTIVE FRAME HOTSPOTS FOR BACK WALL ===== */

/* Container for image with hotspots */
.image-map-container {
    position: relative;
    overflow: visible;
    background: transparent;
}

/* Interactive Frame Hotspots */
.frame-hotspot {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(1px);
    overflow: hidden;
    opacity: 1; /* Professional: immediately visible */
}

.frame-hotspot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.frame-hotspot:hover {
    transform: scale(1.1);
    z-index: 101;
    border-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.frame-hotspot:hover::before {
    opacity: 0.7;
}

.frame-hotspot::after {
    content: attr(data-frame);
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.frame-hotspot:hover::after {
    opacity: 1;
}

/* Hide hotspots when popup/modal is open */
body.modal-open .frame-hotspot {
    display: none !important;
}

/* Focus styles for accessibility */
.frame-hotspot:focus {
    outline: 3px solid #4facfe;
    outline-offset: 2px;
}

/* Responsive design for hotspots */
@media (max-width: 768px) {
    .frame-hotspot {
        border-width: 1px;
    }
    
    .frame-hotspot:hover {
        transform: scale(1.05);
    }
    
    .frame-hotspot::after {
        font-size: 8px;
        padding: 1px 4px;
    }
}

/*───────────────────────────────────────────────────────────────────────────────
  14. VIDEO THUMBNAIL AND PLAY OVERLAY STYLES
───────────────────────────────────────────────────────────────────────────────*/

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.expo-poster-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Ensure both video containers have the same size */
#video2-container,
#video3-container {
    height: 400px;
}

#video2-container .ratio,
#video3-container .ratio {
    height: 100%;
}

/* Ensure both thumbnails have consistent sizing */
#baroness-poster-thumb,
#expo-poster-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video thumbnail hover effects */
.expo-poster-thumb:hover {
    opacity: 0.9;
}

.play-overlay svg {
    transition: transform 0.3s ease;
}

.expo-poster-thumb:hover + .play-overlay svg {
    transform: scale(1.1);
}