:root {
    --bg: #f7f4f1;
    --text: #2d2a26;
    --accent: #c9a574;
    --accent-dark: #a1824f;
    --light: #ffffffcc;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.hero {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
    background: url('https://via.placeholder.com/1600x900?text=Hero+Image') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(45, 42, 38, 0.72), rgba(45, 42, 38, 0.45));
}

.hero__content {
    position: relative;
    padding: 3rem 1.5rem;
    backdrop-filter: blur(4px);
}

.hero__content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin: 0 0 1rem;
}

.hero__content p {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    max-width: 38rem;
    margin: 0 auto;
}

main {
    padding: 5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery__item {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery__item:hover,
.gallery__item:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.details {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.details__content {
    background: var(--light);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 650px;
}

.details__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.details__content p {
    margin-bottom: 1.5rem;
}

.details__content ul {
    padding-left: 1.2rem;
    margin: 0 0 2rem;
}

.details__content li {
    margin-bottom: 0.5rem;
}

.details__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.details__cta:hover,
.details__cta:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    font-size: 0.95rem;
    color: rgba(45, 42, 38, 0.7);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 12, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 50;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(90vw, 1000px);
}

.lightbox__image {
    max-height: min(80vh, 700px);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.lightbox__nav {
    color: #fff;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    transition: background 0.3s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

@media (max-width: 600px) {
    main {
        padding: 3.5rem 1rem;
    }

    .details__content {
        padding: 2rem;
    }

    .lightbox__content {
        flex-direction: column;
    }

    .lightbox__nav {
        order: -1;
    }
}
