* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, p, a, span {
    overflow-wrap: break-word;
    word-break: break-word;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #8c6b4f; /* кафявото */
    padding: 15px 50px;
}

/* ЛОГО */
.logo a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

/* ЛИНКОВЕ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px 22px;
    background: rgba(255,255,255,0.14);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: 0.25s;
}

.nav-links a:hover {
    background: #d8bea7;
    color: #14110d;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}


html {
    scroll-behavior: smooth;
}






.gallery-page {
    padding: 90px 8%;
    background: #f7f3ee;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.gallery-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("bg1.jpg");
    background-repeat: repeat;
    background-size: 340px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.gallery-title,
.gallery-section {
    position: relative;
    z-index: 1;
}

.gallery-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
    color: #2b2117;
    letter-spacing: 2px;
}

.gallery-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #b99572;
    margin: 22px auto 0;
}

.gallery-section {
    padding: 0;
    margin-bottom: 90px;
    border-radius: 0;
    box-shadow: none;
}

.videos, .photos {
    background: transparent;
}

.gallery-section h2 {
    color: #2b2117;
    margin-bottom: 8px;
    font-size: 26px;
    letter-spacing: 3px;
    font-weight: 600;
}

.gallery-section > h2::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    background: #b99572;
    margin-right: 14px;
    vertical-align: middle;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    grid-column: span 2;
    border-radius: 10px;
    overflow: hidden;
    background: #16130f;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}

.gallery-item.featured {
    grid-column: span 4;
}

.gallery-item .media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.gallery-item.featured .media-frame {
    aspect-ratio: 16 / 10;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: 0.3s;
}

.play-badge::before {
    content: "";
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #2b2117;
    margin-left: 4px;
}

.gallery-item:hover .play-badge {
    background: #d8bea7;
    transform: translate(-50%, -50%) scale(1.08);
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 18px 14px;
    background: linear-gradient(to top, rgba(15,12,9,0.85), rgba(15,12,9,0.35) 60%, transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.caption::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8bea7;
    flex-shrink: 0;
}

.caption p {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* legacy overlay kept for compatibility, unused */
.overlay { display: none; }










/* CONTACTS SECTION */

.contacts-section {

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 50px;

    background-color: #1f1f1f;

    padding: 80px;

    color: white;
}


/* LEFT SIDE */

.contacts-info {
    width: 35%;
}

.contacts-info h2 {

    font-size: 60px;

    color: #d8bea7;

    margin-bottom: 40px;
}

.contacts-info p {

    font-size: 28px;

    margin-bottom: 25px;

    font-weight: bold;
}


/* SOCIAL */

.social-box {

    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.social-box img {

    width: 40px;
    height: 40px;
}

.social-box a {

    text-decoration: none;

    color: #d8bea7;

    font-size: 28px;

    font-weight: bold;
}

.social-box a:hover {

    color: white;
}


/* MAP */

.map-box {

    width: 100%;
    height: 450px;

    border-radius: 20px;

    overflow: hidden;
}







.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.logo-link img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}









body{
    font-family: 'Montserrat', sans-serif;
}

h1,h2,h3{
    font-family: 'Cinzel', serif;
}



/* MAP WRAPPER + LINK */
.map-wrap {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maps-link {
    align-self: flex-start;
    text-decoration: none;
    color: #d8bea7;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(216,190,167,0.4);
    padding-bottom: 2px;
    transition: 0.2s;
}

.maps-link:hover {
    color: #fff;
    border-color: #fff;
}

/* ============ RESPONSIVE ============ */

.navbar { flex-wrap: wrap; row-gap: 12px; }
.contacts-section { flex-wrap: wrap; }

@media (max-width: 900px) {
    .gallery-page { padding: 60px 6%; }
    .gallery-title { font-size: 36px; }
    .contacts-info, .map-wrap { width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item, .gallery-item.featured { grid-column: span 2; }
}

@media (max-width: 600px) {
    .navbar { padding: 15px 20px; justify-content: space-between; position: relative; }
    .logo-link span { font-size: 17px; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8c6b4f;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        gap: 10px;
        margin-top: 0;
        z-index: 100;
        box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    }
    .nav-links.open { display: flex; }
    .nav-links a { margin-left: 0; font-size: 14px; text-align: center; width: 100%; }

    .gallery-page { padding: 45px 6%; }
    .gallery-title { font-size: 28px; }
    .gallery-section h2 { font-size: 18px; }

    .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .gallery-item, .gallery-item.featured { grid-column: span 1; }
    .gallery-item .media-frame, .gallery-item.featured .media-frame { aspect-ratio: 4 / 3; }

    .contacts-section { padding: 55px 6%; }
    .contacts-info h2 { font-size: 34px; }
    .contacts-info p { font-size: 17px; }
    .map-box { height: 260px; }
}
