/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e8e4df;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
.serif {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.preloader__curtain-top,
.preloader__curtain-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #0a0a0a;
    z-index: 1;
}

.preloader__curtain-top { top: 0; }
.preloader__curtain-bottom { bottom: 0; }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    color: #f5f3f0;
    padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--visible {
    opacity: 1 !important;
}

.nav--visible > * {
    opacity: 1 !important;
}

.nav > * {
    pointer-events: auto;
}

.nav__logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.nav__links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    list-style: none;
}

.nav__links a {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8e4df;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #e8e4df;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav__mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 105;
    overscroll-behavior: none;
    touch-action: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 3vh, 2rem);
    padding: 0 1.5rem;
    pointer-events: none;
    overflow: hidden;
}

.nav__mobile.open {
    display: flex;
    height: 100vh;
    height: 100dvh;
    pointer-events: auto;
}

.nav__mobile a {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(30px);
    flex-shrink: 0;
}

.nav.nav--transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__toggle { display: flex; }
    .nav {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ========================================
   SECTIONS — SHARED
   ======================================== */
section {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section-label {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #8a8580;
    margin-bottom: 1.5rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(232, 228, 223, 0.1);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: clamp(3rem, 8vh, 6rem);
    position: relative;
    background: #0a0a0a;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../img/background/DSC_0632.webp') center center / 100% auto no-repeat fixed;
    opacity: 0;
    will-change: opacity;
    z-index: 0;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000a6;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.hero__title .line {
    display: block;
    overflow: visible;
}

.hero__title .line span {
    display: inline-block;
}

.hero__title .line:nth-child(2) {
    padding-left: clamp(2rem, 10vw, 8rem);
    font-style: italic;
    color: #c4beb8;
}

.hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero__desc {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 300;
    max-width: 320px;
    line-height: 1.7;
    color: #d9d1c9;
}

.hero__scroll {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #8a8580;
    flex-shrink: 0;
}

.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: #8a8580;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: clamp(5rem, 12vh, 10rem) 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: stretch;
    margin-top: clamp(3rem, 6vw, 5rem);
}

.about__image-wrap {
    position: relative;
    overflow: hidden;
    background: #1a1816;
}

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

.about__image-reveal {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform-origin: top;
}

.about__right {
    padding-top: clamp(1rem, 4vw, 4rem);
}

.about__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.about__heading em {
    font-style: italic;
    color: #c4beb8;
}

.about__text {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 300;
    line-height: 1.8;
    color: #a09a94;
    margin-bottom: 1.5rem;
}

.about__tags {
    display: flex;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(232, 228, 223, 0.1);
}

.about__tag {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a09a94;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(232, 228, 223, 0.15);
}

.about__quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    color: #c4beb8;
    margin-top: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about__grid { grid-template-columns: 1fr; }
    .about__image-wrap { aspect-ratio: 3 / 4; }
    .about__right { padding-top: 0; }
    .about__tags { flex-wrap: wrap; }
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
    padding: clamp(5rem, 12vh, 10rem) 0;
}

.gallery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: clamp(3rem, 6vw, 5rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    gap: 2rem;
    flex-wrap: wrap;
}

.gallery__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
}

.gallery__heading em {
    font-style: italic;
    color: #c4beb8;
}

.gallery__filter {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gallery__filter button {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8580;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.gallery__filter button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8e4df;
    transition: width 0.4s ease;
}

.gallery__filter button.active,
.gallery__filter button:hover {
    color: #e8e4df;
}

.gallery__filter button.active::after {
    width: 100%;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery__item:nth-child(1) { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(2) { aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery__item:nth-child(3) { aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery__item:nth-child(4) { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(5) { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(6) { aspect-ratio: 4 / 3; grid-column: span 2; }

.gallery__item-inner {
    width: 100%;
    height: 100%;
    background-color: #1a1816;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.gallery__item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover .gallery__item-inner img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: clamp(1rem, 2vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
}

.gallery__item-reveal {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform-origin: left;
}

@media (max-width: 768px) {
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__item:nth-child(n) {
        grid-column: span 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .gallery__item:nth-child(n) {
        grid-column: span 1;
    }
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: clamp(5rem, 12vh, 10rem) 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.contact__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact__heading em {
    font-style: italic;
    color: #c4beb8;
}

.contact__subtext {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 300;
    line-height: 1.8;
    color: #a09a94;
    max-width: 400px;
}

.contact__info {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__info-item {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a8580;
}

.contact__info-item a,
.contact__info-item span {
    color: #e8e4df;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: none;
    display: block;
    margin-top: 0.3rem;
    transition: opacity 0.3s ease;
}

.contact__info-item a:hover {
    opacity: 0.7;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
    padding-top: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8a8580;
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(232, 228, 223, 0.15);
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #e8e4df;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #e8e4df;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(232, 228, 223, 0.3);
    color: #e8e4df;
    transition: background 0.4s ease, color 0.4s ease;
    cursor: pointer;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: #e8e4df;
    color: #0a0a0a;
}

.form-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-submit:disabled:hover {
    background: transparent;
    color: #e8e4df;
}

/* Hibás mező jelölése — a szín mellett a hibaszöveg is megjelenik,
   hogy ne csak színnel közöljük az információt. */
.form-group input.has-error,
.form-group textarea.has-error {
    border-bottom-color: #e0857a;
}

.form-error {
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #e0857a;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 1rem;
}

.form-status:empty {
    margin-top: 0;
}

.form-status--success {
    color: #9fc7a6;
}

.form-status--error {
    color: #e0857a;
}

.form-consent {
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.7;
    color: #8a8580;
    margin-top: 1.25rem;
}

.form-consent a {
    color: #c4beb8;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.3s ease;
}

.form-consent a:hover {
    color: #e8e4df;
}

/* Spamcsapda: a valódi látogató elől teljesen elrejtve, de nem
   display:none-nal, mert azt sok bot felismeri és kihagyja. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: clamp(2rem, 4vh, 3rem) clamp(1.25rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(232, 228, 223, 0.08);
}

.footer__copy {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #8a8580;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.footer__socials a {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a8580;
    transition: color 0.3s ease;
}

.footer__socials a:hover {
    color: #e8e4df;
}

/* ========================================
   BACKGROUND CANVAS
   ======================================== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(3rem, 6vh, 5rem);
    padding-top: clamp(9rem, 22vh, 14rem);
    min-height: 50vh;
}

.category-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.category-hero__title em {
    font-style: italic;
    color: #c4beb8;
}

.category-hero__desc {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 300;
    max-width: 450px;
    line-height: 1.7;
    color: #a09a94;
    margin-top: clamp(1rem, 2vh, 2rem);
}

.category-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8580;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
    transition: color 0.3s ease;
}

.category-hero__back:hover {
    color: #e8e4df;
}

.category-hero__back-line {
    width: 30px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.category-hero__back:hover .category-hero__back-line {
    width: 45px;
}

.category-gallery {
    padding: clamp(3rem, 6vh, 5rem) 0 clamp(5rem, 12vh, 10rem);
}

.category-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.category-gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1a1816;
}

.category-gallery__item--landscape {
    aspect-ratio: 3 / 2;
    grid-column: span 2;
}

.category-gallery__item--portrait {
    aspect-ratio: 2 / 3;
    grid-column: span 1;
}

.category-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-gallery__item[data-full] {
    cursor: pointer;
}

.category-gallery__item:hover img {
    transform: scale(1.04);
}

.category-gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 40%);
    display: flex;
    align-items: flex-end;
    padding: clamp(1rem, 2vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-gallery__item:hover .category-gallery__item-overlay {
    opacity: 1;
}

.category-gallery__item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
}

.category-gallery__item-reveal {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    transform-origin: left;
}

@media (max-width: 768px) {
    .category-gallery__grid { grid-template-columns: 1fr; }
    .category-gallery__item,
    .category-gallery__item--landscape,
    .category-gallery__item--portrait {
        grid-column: span 1;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .category-gallery__item,
    .category-gallery__item--landscape,
    .category-gallery__item--portrait {
        grid-column: span 1;
    }
}

/* Category page nav overrides */
.nav--category {
    mix-blend-mode: normal;
    opacity: 1;
}

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

/* ========================================
   RESPONSIVE — SMALL MOBILE (<=480px)
   ======================================== */
@media (max-width: 480px) {
    /* Hero */
    .hero {
        padding-bottom: 2rem;
    }
    .hero__bg {
        background-size: cover;
        background-attachment: scroll;
    }

    .hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero__scroll {
        display: none;
    }

    /* About */
    .about__tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .about__tag {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }

    /* Gallery */
    .gallery__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .gallery__filter {
        gap: 1rem;
    }

    /* Contact */
    .form-submit {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .footer__socials {
        gap: 1.25rem;
        justify-content: center;
    }

}

/* ========================================
   RESPONSIVE — TABLET (481px-768px)
   ======================================== */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hero */
    .hero__bg {
        background-size: cover;
        background-attachment: scroll;
    }

    /* About */
    .about__tags {
        flex-wrap: wrap;
    }

    /* Category gallery — 2 columns on tablet, landscape spans full */
    .category-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-gallery__item--landscape {
        grid-column: span 2;
    }
}

/* ========================================
   RESPONSIVE — SMALL LAPTOP (769px-1024px)
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Contact — stack on smaller laptops */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    /* About — reduce gap */
    .about__grid {
        gap: 2rem;
    }
}

/* ========================================
   RESPONSIVE — TOUCH DEVICES & MOBILE FIX
   ======================================== */
@media (hover: none) {
    /* Show overlays by default on touch devices */
    .gallery__item-overlay,
    .category-gallery__item-overlay {
        opacity: 1;
    }

    /* Disable background-attachment: fixed (causes issues on iOS) */
    .hero__bg {
        background-attachment: scroll;
    }
}

/* ========================================
   HERO HÁTTÉR — KISEBB KÉP MOBILRA
   A 2560px széles változat (396 KB) felesleges egy telefonon;
   768px alatt a feleakkora, 136 KB-os fájl megy helyette.
   Ez a blokk a fenti media query-k UTÁN áll, hogy felülírja őket.
   ======================================== */
@media (max-width: 768px) {
    .hero__bg {
        background-image: url('../img/background/DSC_0632-mobile.webp');
    }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #c4beb8;
    transition: width 0.3s ease;
}

.lightbox__loader.done {
    opacity: 0;
    transition: width 0.3s ease, opacity 0.4s ease 0.2s;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox__img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1.25rem, 5vw, 3rem);
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1;
}

.lightbox__close::before,
.lightbox__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e8e4df;
    transition: opacity 0.3s ease;
}

.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }

.lightbox__close:hover::before,
.lightbox__close:hover::after {
    opacity: 0.6;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lightbox__arrow:hover {
    opacity: 1;
}

.lightbox__arrow--prev {
    left: clamp(1rem, 3vw, 2.5rem);
}

.lightbox__arrow--next {
    right: clamp(1rem, 3vw, 2.5rem);
}

.lightbox__arrow::before,
.lightbox__arrow::after {
    content: '';
    position: absolute;
    background: #e8e4df;
    width: 20px;
    height: 1px;
    left: 50%;
}

.lightbox__arrow--prev::before {
    top: calc(50% - 6px);
    transform: translateX(-50%) rotate(-40deg);
}

.lightbox__arrow--prev::after {
    top: calc(50% + 6px);
    transform: translateX(-50%) rotate(40deg);
}

.lightbox__arrow--next::before {
    top: calc(50% - 6px);
    transform: translateX(-50%) rotate(40deg);
}

.lightbox__arrow--next::after {
    top: calc(50% + 6px);
    transform: translateX(-50%) rotate(-40deg);
}

@media (max-width: 768px) {
    .lightbox__arrow {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   RESPONSIVE — LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .category-hero {
        min-height: auto;
        padding-top: 5rem;
    }
}
