.s-restaurant-gallery {
    position: relative;
    background-color: #18191F;
    padding: 80px 0 60px;
    overflow: hidden;
    direction: rtl;
}

/* --- Decorative elements --- */
.restaurant-gallery__deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
}
.restaurant-gallery__deco--tl {
    top: 0;
    right: 0;
    width: 200px;
    opacity: 0.15;
}
.restaurant-gallery__deco--tr {
    top: -13px;
    left: 0;
    width: 233px;
    opacity: 0.4;
}
.restaurant-gallery__deco img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Header --- */
.restaurant-gallery__header {
    text-align: right;
    margin-bottom: 52px;
    padding: 0 20px;
}
.restaurant-gallery__subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 29px;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.restaurant-gallery__title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 100px;
    line-height: 1;
    margin: 0;
    background: linear-gradient(270deg, #E3B407 0%, #FFEECB 81.98%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Gallery pages --- */
.restaurant-gallery__page {
    display: none;
}
.restaurant-gallery__page.is-active {
    display: block;
}

/* --- 3×2 Grid --- */
.restaurant-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}

/* --- Gallery item card --- */
.restaurant-gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.restaurant-gallery__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}
.restaurant-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}
.restaurant-gallery__item:hover .restaurant-gallery__img {
    transform: scale(1.05);
}

/* --- Hover overlay --- */
.restaurant-gallery__overlay {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(40, 5, 5, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.restaurant-gallery__item.has-overlay:hover .restaurant-gallery__overlay {
    opacity: 1;
}
.restaurant-gallery__overlay-icon {
    margin-bottom: 16px;
}
.restaurant-gallery__item-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.restaurant-gallery__item-desc {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

/* --- Navigation --- */
.restaurant-gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.restaurant-gallery__arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.restaurant-gallery__arrow:hover {
    opacity: 0.7;
}
.restaurant-gallery__arrow img {
    width: 40px;
    height: 40px;
    display: block;
}
.restaurant-gallery__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}
.restaurant-gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.restaurant-gallery__dot.is-active {
    background: #E3B407;
    border-color: #E3B407;
}

/* --- CTA button --- */
.restaurant-gallery__cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 47px;
}
.restaurant-gallery__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 586px;
    max-width: 100%;
    height: 91px;
    background: linear-gradient(270deg, #E3B407 0%, #FFEECB 81.98%);
    border: 1px solid #fff;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: opacity 0.3s;
}
.restaurant-gallery__cta:hover {
    opacity: 0.9;
}
.restaurant-gallery__cta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.restaurant-gallery__cta-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: #000;
    line-height: 1;
}

/* --- Responsive: Tablet (~768px) --- */
@media (max-width: 1024px) {
    .s-restaurant-gallery {
        padding: 60px 0 40px;
    }
    .restaurant-gallery__title {
        font-size: 60px;
    }
    .restaurant-gallery__subtitle {
        font-size: 24px;
    }
    .restaurant-gallery__grid {
        gap: 33px;
    }
    .restaurant-gallery__cta {
        width: 462px;
        height: 60px;
    }
    .restaurant-gallery__cta-text {
        font-size: 33px;
    }
    .restaurant-gallery__deco--tl {
        width: 123px;
    }
}

/* --- Responsive: Mobile (<768px) --- */
@media (max-width: 767px) {
    .s-restaurant-gallery {
        padding: 40px 0 30px;
    }
    .restaurant-gallery__title {
        font-size: 50px;
    }
    .restaurant-gallery__subtitle {
        font-size: 20px;
    }
    /* Keep 3 columns on mobile, tighter gap */
    .restaurant-gallery__grid {
        gap: 15px;
    }
    /* Overlay always visible on touch devices */
    .restaurant-gallery__overlay {
        opacity: 1;
    }
    .restaurant-gallery__item-title {
        font-size: 14px;
    }
    .restaurant-gallery__item-desc {
        font-size: 6px;
    }
    .restaurant-gallery__overlay-icon svg {
        width: 20px;
        height: 20px;
    }
    /* Hide CTA on mobile per Figma */
    .restaurant-gallery__cta-wrap {
        display: none;
    }
    /* Hide both decorations on mobile per Figma */
    .restaurant-gallery__deco--tl,
    .restaurant-gallery__deco--tr {
        display: none;
    }
}
