/* Base Layout Architecture */
.eda-section-container {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Cinematic Full Width Media */
.eda-media-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.eda-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 80%, rgba(255,255,255,1) 100%);
}

.eda-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* Lower Editorial Grid Layout */
.eda-bottom-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.eda-empty-left {
    flex: 1;
}

.eda-content-right {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Elegant Thumbnail Gallery */
.eda-gallery-wrapper {
    position: relative;
    width: 100%;
}

.eda-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.eda-gallery-track::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.eda-gallery-item {
    width: 90px;
    height: 130px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0.65;
}

.eda-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Gallery Hover Interactions */
.eda-gallery-track:hover .eda-gallery-item {
    opacity: 0.4;
}

.eda-gallery-track .eda-gallery-item:hover {
    transform: scale(1.06);
    opacity: 1;
}

/* Text & Description Areas */
.eda-text-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eda-text-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eda-number {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

.eda-title {
    font-family: serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.25;
    margin: 0;
}

.eda-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
}

/* Metadata Grid */
.eda-metadata-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.eda-metadata-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.eda-meta-label {
    opacity: 0.5;
}

.eda-meta-value {
    font-weight: 500;
}

/* Custom Lightbox Overlay */
.eda-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.eda-lightbox.eda-active {
    opacity: 1;
    pointer-events: auto;
}

.eda-lightbox-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
}

.eda-lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.eda-lightbox-close:hover {
    opacity: 1;
}

.eda-lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.eda-lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.eda-lightbox-caption-area {
    text-align: center;
    max-width: 500px;
}

.eda-lightbox-title {
    font-family: serif;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 6px 0;
}

.eda-lightbox-desc {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
    .eda-media-container {
        height: 50vh;
    }
    .eda-bottom-layout {
        flex-direction: column;
        padding: 40px 20px 60px 20px;
    }
    .eda-content-right {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .eda-media-container {
        height: 40vh;
    }
    .eda-gallery-item {
        width: 80px;
        height: 110px;
    }
    .eda-title {
        font-size: 24px;
    }
    .eda-lightbox-close {
        right: 20px;
        top: 20px;
    }
}
