.photo-expandable {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-expandable.expanded {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lg-outer .lg-item:not(.lg-start-end-progress) {
    background: transparent !important;
}

.lg-image {
    max-width: 90vw !important;
}

.lg-outer .lg-prev,
.lg-outer .lg-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    z-index: 10050 !important;
    background: rgba(0, 0, 0, 0.32) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}
.lg-outer .lg-prev:hover,
.lg-outer .lg-next:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #FFFFFF !important;
    transform: scale(1.04) !important;
}
.lg-outer .lg-prev:active,
.lg-outer .lg-next:active {
    transform: scale(0.98) !important;
}
.lg-outer .lg-prev:focus-visible,
.lg-outer .lg-next:focus-visible,
.lg-outer .lg-toolbar .lg-close:focus-visible {
    outline: 3px solid var(--primary, #00CEC8) !important;
    outline-offset: 3px !important;
}

.lg-outer .lg-prev:after,
.lg-outer .lg-next:before {
    font-size: 20px !important;
    color: white !important;
}

.lg-outer .lg-toolbar .lg-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    background: rgba(0, 0, 0, 0.32) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
    z-index: 10060 !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}
.lg-outer .lg-toolbar .lg-close:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #FFFFFF !important;
    transform: scale(1.04) !important;
}
.lg-outer .lg-toolbar .lg-close:active {
    transform: scale(0.98) !important;
}

.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 1000 !important;
}

.lg-outer {
    z-index: 10040 !important;
}

@media (max-width: 768px) {
    .lg-outer .lg-prev,
    .lg-outer .lg-next {
        width: 56px !important;
        height: 56px !important;
    }
    .lg-outer .lg-toolbar .lg-close {
        width: 48px !important;
        height: 48px !important;
        top: 16px !important;
        right: 16px !important;
    }
}
