/* Oppenheimer Gallery - Premium Frontend Styles */

:root {
    --opp-accent-color: #0c1a30; /* Sombre élégant */
    --opp-overlay-bg: rgba(12, 26, 48, 0.7);
    --opp-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.opp-gallery-wrapper {
    margin: 2rem 0;
}

.opp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.opp-gallery-item {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--opp-transition);
    aspect-ratio: 16 / 10; /* Proportion élégante */
}

.opp-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.opp-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.opp-gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.opp-gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--opp-transition);
}

.opp-gallery-item:hover img {
    transform: scale(1.08);
}

.opp-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--opp-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--opp-transition);
}

.opp-gallery-item:hover .opp-gallery-overlay {
    opacity: 1;
}

.opp-gallery-icon {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    transform: scale(0.8);
    transition: var(--opp-transition);
}

.opp-gallery-item:hover .opp-gallery-icon {
    transform: scale(1);
}

/* Lightbox Styles */
.opp-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.opp-lightbox-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    top: 50%;
    transform: translateY(-50%);
}

.opp-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: fadeIn 0.5s ease;
}

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

.opp-lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

.opp-lightbox-nav span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.opp-lightbox-nav span:hover {
    background: rgba(255,255,255,0.2);
}

.opp-lightbox-prev { left: 20px; }
.opp-lightbox-next { right: 20px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .opp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .opp-lightbox-nav span {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
