.previous-editions-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.previous-editions-title,
.page-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--lot-green);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--lot-orange);
    border-radius: 2px;
}

.previous-editions-container .edition-tabs {
    margin-top: 2rem;
}

.edition-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
}

.edition-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.edition-tab:hover {
    color: #1a1a1a;
}

.edition-tab.active {
    color: #1a1a1a;
}

.edition-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--lot-orange);
}

.edition-content {
    position: relative;
}

.edition-panel {
    display: none;
}

.edition-panel.active {
    display: block;
}

.carousel {
    position: relative;
    width: 80vw;
    margin-left: calc(-40vw + 50%);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 60%;
    max-width: 900px;
    height: 500px;
    background-color: var(--lot-green);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateX(0);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 3;
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0.3;
    visibility: visible;
    transform: scale(0.7) translateX(-70%);
    z-index: 1;
}

.carousel-slide.next {
    opacity: 0.3;
    visibility: visible;
    transform: scale(0.7) translateX(70%);
    z-index: 1;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(22, 33, 34, 0.7);
    color: var(--lot-orange);
    border: none;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 0;
    padding: 0 0 5px;
}

.carousel-button:hover {
    background-color: var(--lot-green);
}

.carousel-button-prev {
    left: 10px;
}

.carousel-button-next {
    right: 10px;
}

.carousel-indicators {
    display: none;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: var(--lot-orange);
}

.carousel-indicator:hover {
    background-color: var(--lot-green);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin-top: 3rem;
    width: 100%;
}

.photos-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--lot-green);
    cursor: pointer;
}

.photos-grid-item img,
.photos-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photos-grid-item:hover img,
.photos-grid-item:hover video {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .previous-editions-container {
        padding: 1rem;
    }

    .edition-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .edition-tab {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        flex: 0 0 calc(33.333% - 0.5rem);
        text-align: center;
    }

    .carousel {
        height: 400px;
    }

    .carousel-slide {
        width: 90%;
        max-width: none;
        height: 350px;
    }

    .carousel-slide.active {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    .carousel-slide.prev,
    .carousel-slide.next {
        opacity: 0;
        transform: scale(0.8) translateX(0);
        pointer-events: none;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Video indicator */
.photos-grid-item {
    position: relative;
}

.photo-new-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--lot-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-indicator svg {
    margin-left: 4px;
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.photo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem !important;
    font-weight: 200;
    color: var(--lot-orange) !important;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    transition: opacity 0.3s;
}

.photo-modal-close:hover {
    opacity: 0.7;
}

.photo-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
    padding-bottom: 4px;
}

.photo-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-modal-prev {
    left: 20px;
    padding-right: 4px;
}

.photo-modal-next {
    right: 20px;
    padding-left: 4px;
}

.photo-modal-media {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-media img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.photo-modal-media video {
    max-width: 100%;
    max-height: 85vh;
}

@media (max-width: 768px) {
    .photo-modal-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .photo-modal-nav {
        font-size: 2.5rem;
        padding: 0.5rem;
    }

    .photo-modal-prev {
        left: 5px;
    }

    .photo-modal-next {
        right: 5px;
    }
}

/* Photos counter */
.photos-counter {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Load more button */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-load-more {
    background: var(--lot-orange);
    color: white;
    border: 2px solid var(--lot-orange);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-load-more:hover {
    background: white;
    color: var(--lot-orange);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lot-green);
    font-weight: 500;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--lot-orange);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
