.image-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto;
    overflow: hidden;
}

.image-base {
    width: 100%;
    height: auto;
    display: block;
}

.caveau-section-home {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #faf3dd !important;
    padding: 15px 15px 0 15px;
    border-radius: 0 4px 0 0;
    max-width: 380px;
    z-index: 100;
    color: var(--dark) !important;
    box-shadow: 2px -2px 12px rgba(0,0,0,0.3);
}

.icon {
    width: 40px;
    height: 40px;
    animation: pulse 2s infinite ease-in-out;
    cursor: pointer;
    z-index: 2;
    position: relative;
    will-change: transform;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.circle-bg {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 8px;
}

.circle-bg:hover {
    background-color: rgba(170, 132, 25, 0.75);
}

.icon-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
    will-change: transform;
}

.icon-wrapper:hover {
    background: rgba(0, 0, 0, 0.6);
}

.icon-label {
    position: relative;
    display: block;
    margin-top: 8px;
    font-family: 'Cinzel', serif;
    color: #faf3dd;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-wrapper:hover .icon-label {
    opacity: 1;
}

.image-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 4s ease-in-out;
    opacity: 0;
}

.image-overlay img.fade-in {
    animation: fadeIn 4s forwards;
}

.image-overlay.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 1s ease-in-out;
}

.page-transition.active { opacity: 1; }

.next-page {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    opacity: 0;
    z-index: 10000;
    transition: opacity 1.2s ease-in-out;
}

.next-page.active { opacity: 1; }

.mobile-fullscreen {
    display: none;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.mobile-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 1000px) {
    .image-container,
    .icon-wrapper {
        display: none !important;
    }

    .mobile-fullscreen { display: block; }

    .mobile-overlay-text {
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #faf3dd;
        font-family: 'Lora', serif;
        font-size: 18px;
        text-align: center;
        white-space: nowrap;
        display: flex;
    }
}
