/*-----------------------------------------------------------------------------------*/
/*	BEDOV STUDIO - Modern Design Enhancements 2025
/*	A comprehensive modernization layer for a polished, contemporary look
/*-----------------------------------------------------------------------------------*/

/* ============================================================================
   MODERN TYPOGRAPHY
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text, #4A4A5A);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--dark, #1A1A2E);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-light, #6E6E7A);
}

/* ============================================================================
   MODERN PRELOADER
   ============================================================================ */

#preloader {
    background: #fff;
}

#preloader .textload {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
}

.spinner {
    width: 44px;
    height: 44px;
    border-width: 2px;
}

/* ============================================================================
   MODERN NAVBAR - Glassmorphism Effect
   ============================================================================ */

.navbar {
    height: 80px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.navbar.solid.light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar.fixed {
    height: 70px;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar.fixed.light {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: none;
}

.navbar .navbar-brand img {
    height: 42px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.fixed .navbar-brand img {
    height: 36px;
}

.navbar .navbar-nav > li > a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Underline effect for nav items */
.navbar .navbar-nav > li > a::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #2A7B8C);
    transition: width 0.3s ease;
}

/* Show underline on hover */
.navbar .navbar-nav > li > a:hover::after {
    width: 100%;
}

/* Keep underline for current/selected page */
.navbar .navbar-nav > li.current > a::after {
    width: 100%;
}

/* Navbar social icons - properly centered */
@media (min-width: 992px) {
    .navbar .social-wrapper {
        display: table-cell !important;
        vertical-align: middle;
        text-align: right;
        width: 120px;
    }

    .navbar .social-wrapper .social {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
        margin: 0;
        padding: 0;
        height: 100%;
        list-style: none;
    }

    .navbar .social-wrapper .social li {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 90px;
        height: auto;
    }

    .navbar.fixed .social-wrapper .social li {
        line-height: 70px;
    }

    .navbar .social-wrapper .social li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        opacity: 0.5;
        transition: all 0.3s ease;
        line-height: inherit;
        color: var(--dark, #1A1A2E);
    }

    .navbar .social-wrapper .social li a:hover {
        opacity: 1;
        color: var(--primary, #2A7B8C);
    }

    .navbar .social-wrapper .social li a i {
        line-height: 1;
    }
}

/* ============================================================================
   MODERN HERO SLIDESHOW
   ============================================================================ */

.hero-slideshow {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slideshow .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.55) 0%,
        rgba(26, 26, 46, 0.35) 50%,
        rgba(42, 123, 140, 0.25) 100%
    );
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 90%;
    max-width: 800px;
    z-index: 10;
    padding: 0 20px;
    opacity: 1 !important;
}

.hero-slideshow .slide-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

.hero-slideshow .slide-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-slideshow .slide-content a:not(.btn) {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.hero-slideshow .slide-content a:not(.btn):hover {
    border-bottom-color: #fff;
}

.hero-slideshow .slide-content a.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.hero-slideshow .slide-content a.btn:hover {
    background: var(--primary, #2a7b8c);
    border-color: var(--primary, #2a7b8c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 123, 140, 0.4);
}


/* ============================================================================
   MODERN BUTTONS
   ============================================================================ */

.btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow, rgba(42, 123, 140, 0.25));
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow, rgba(42, 123, 140, 0.35));
}

.btn:active {
    transform: translateY(0);
}

.btn.btn-rose {
    background: var(--secondary, #C4797A);
    box-shadow: 0 4px 15px rgba(196, 121, 122, 0.3);
}

.btn.btn-rose:hover {
    background: #B36A6B;
    box-shadow: 0 8px 25px rgba(196, 121, 122, 0.4);
}

/* Outline button variant */
.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary, #2A7B8C) !important;
    color: var(--primary, #2A7B8C) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary, #2A7B8C) !important;
    color: #fff !important;
    box-shadow: 0 8px 25px var(--shadow, rgba(42, 123, 140, 0.35));
}

/* ============================================================================
   GALLERY CARDS & HOVER EFFECT
   ============================================================================ */

.image-grid .item {
    margin-bottom: 40px;
}

.slide-portfolio-item-info.box {
    padding: 15px 5px 25px;
}

.slide-portfolio-item-info h4.post-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark, #1A1A2E);
    margin: 0;
    transition: color 0.3s ease;
}

.image-grid .item:hover .post-title {
    color: var(--primary, #2A7B8C);
}

.image-grid .item figure {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    /* Force consistent landscape aspect ratio */
    aspect-ratio: 3 / 2;
}

.image-grid .item figure img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-grid .item:hover figure {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.image-grid .item:hover figure img {
    transform: scale(1.05);
}

/* Dark overlay on hover */
.image-grid .item figure::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.image-grid .item:hover figure::after {
    background: rgba(26, 26, 46, 0.4);
}

/* Icon overlay container */
.icon-overlay {
    position: relative;
    display: block;
}

/* Base icon style */
.icon-overlay::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Eye icon for photos (default) */
.icon-overlay::before {
    content: '';
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231A1A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center center;
}

/* Play icon for videos */
#video-section .icon-overlay::before {
    content: '';
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%231A1A2E' stroke='none'%3E%3Cpolygon points='8,5 20,12 8,19'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center center;
    padding-left: 4px;
}

.image-grid .item:hover .icon-overlay::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hide old icon overlay elements */
.icon-overlay .icn-more {
    display: none !important;
}

/* ============================================================================
   MODERN TABS
   ============================================================================ */

.tabs-top {
    display: flex;
    gap: 0;
}

.tabs-top .etabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 4px;
}

.tabs-top .tab {
    margin: 0;
}

.tabs-top .tab a {
    display: block;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light, #6E6E7A);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
}

.tabs-top .tab:hover a {
    color: var(--dark, #1A1A2E);
}

.tabs-top .tab.active a {
    background: var(--primary, #2A7B8C);
    color: #fff;
    box-shadow: 0 4px 12px var(--shadow, rgba(42, 123, 140, 0.3));
}

/* Gallery tabs container */
.gallery-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   MODERN SECTIONS & WRAPPERS
   ============================================================================ */

.dark-wrapper {
    background: #f9f9f9;
}

.light-wrapper {
    background: #fff;
}

.inner {
    padding-top: 100px;
    padding-bottom: 100px;
}

.inner2 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.thin {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.offset {
    height: 80px;
}

/* Section titles */
.section-title.text-center {
    margin-bottom: 2rem;
}

.section-title.text-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent, #D4A574);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================================================
   MODERN CONTACT INFO
   ============================================================================ */

.contact-info {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-info li {
    margin: 8px 15px;
    font-size: 15px;
}

.contact-info li:first-child {
    display: block;
    width: 100%;
    font-weight: 600;
    color: var(--dark, #1A1A2E);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--primary, #2A7B8C);
}

/* ============================================================================
   MODERN FOOTER
   ============================================================================ */

footer.inverse-wrapper {
    background: var(--dark, #1A1A2E);
    position: relative;
}

footer.inverse-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #2A7B8C), var(--secondary, #C4797A), var(--accent, #D4A574));
}

.sub-footer {
    background: rgba(0, 0, 0, 0.3);
}

.sub-footer .inner {
    padding-top: 25px;
    padding-bottom: 25px;
}

.sub-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ============================================================================
   MODERN SOCIAL ICONS
   ============================================================================ */

.social.naked li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.social.naked li a:hover {
    background: var(--primary, #2A7B8C);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================================
   MODERN LISTS
   ============================================================================ */

ul.circled {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.circled li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    line-height: 1.5;
}

ul.circled li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: #a67c52;
    font-size: 8px;
    line-height: 1.8;
}

/* ============================================================================
   MODERN ACCORDION / TOGGLE
   ============================================================================ */

.panel-group.boxed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.panel-group.boxed .panel {
    border: none;
    border-radius: 0;
    margin: 0;
    background: #fff;
}

.panel-group.boxed .panel + .panel {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-group.boxed .panel-heading {
    padding: 0;
    border: none;
    background: #fff;
}

.panel-group.boxed .panel-title {
    margin: 0;
    font-size: 15px;
}

.panel-group.boxed .panel-title a.panel-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: var(--dark, #1A1A2E);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.panel-group.boxed .panel-title a.panel-toggle:hover {
    color: var(--primary, #2A7B8C);
    background: rgba(42, 123, 140, 0.03);
}

/* Chevron arrow indicator - points down by default (collapsed) */
.panel-group.boxed .panel-title a.panel-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

/* Only rotate chevron up when explicitly expanded */
.panel-group.boxed .panel-title a.panel-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.panel-group.boxed .panel-collapse {
    border: none;
}

.panel-group.boxed .panel-body {
    padding: 0 20px 20px 20px;
    background: #fff;
    color: var(--text-light, #6E6E7A);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================================
   PRICING PANELS
   ============================================================================ */

.pricing.panel {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pricing.panel:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.pricing .panel-heading {
    background: var(--primary, #2A7B8C);
    padding: 30px 20px;
    text-align: center;
}

.pricing .panel-heading .panel-title {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.pricing .panel-heading .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
}

.pricing .panel-heading .price-currency {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.9;
}

.pricing .panel-heading .price-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.pricing .panel-body {
    padding: 25px 20px;
}

.pricing .panel-body .table {
    margin: 0;
}

.pricing .panel-body .table td {
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--text, #4A4A5A);
}

.pricing .panel-body .table tr:first-child td {
    border-top: none;
}

.pricing .panel-body .table td strong {
    color: var(--primary, #2A7B8C);
    font-weight: 600;
}

/* Active/expanded panel styling */
.panel-group.boxed .panel-heading:has(a:not(.collapsed)),
.panel-group.boxed .panel-heading:has(a[aria-expanded="true"]) {
    background: rgba(42, 123, 140, 0.03);
}

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */

/* Fade in on scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary, #2A7B8C);
    outline-offset: 3px;
}

/* ============================================================================
   SLIDE PORTFOLIO OVERLAY
   ============================================================================ */

.slide-portfolio-item-content {
    background: #f9f9f9;
}

/* Wider gallery sidebar on desktop */
@media (min-width: 992px) {
    .slide-portfolio-item-content {
        width: 1000px !important;
        transform: translateX(1000px);
    }

    .slide-portfolio-item-content.slide-in {
        transform: translateX(0) !important;
    }

    main.slide-out {
        transform: translateX(-1000px) !important;
    }

    /* Gallery layout handled by .full-width/.half-width classes */
    .slide-portfolio-item-content .basic-gallery {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 15px;
    }

    .slide-portfolio-item-content .basic-gallery li {
        padding: 0;
    }
}

.slide-portfolio-item-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--dark, #1A1A2E);
    margin-bottom: 30px;
}

.basic-gallery li {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Override margin when inside slide-portfolio (uses flexbox gap instead) */
.slide-portfolio-item-content .basic-gallery li {
    margin-bottom: 0;
    margin-top: 0;
    vertical-align: top;
}

/* Ensure first row items align properly */
.slide-portfolio-item-content .basic-gallery li:first-child,
.slide-portfolio-item-content .basic-gallery li:nth-child(2) {
    margin-top: 0;
}

/* Override text-center to not interfere with flexbox */
.slide-portfolio-item-content .basic-gallery.text-center {
    text-align: left;
}

/* Remove margin from empty paragraphs before gallery */
.slide-portfolio-item-content .inner2 > p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.basic-gallery li img {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Hide close button by default - only show when portfolio is open */
.slide-portfolio-item-content-close {
    display: none;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark, #1A1A2E);
    text-decoration: none;
    font-size: 32px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.slide-portfolio-item-content-close i {
    font-weight: 300;
    font-style: normal;
}

/* Show close button when slide portfolio is open */
body.overflow-hidden .slide-portfolio-item-content-close {
    display: flex;
}

.slide-portfolio-item-content-close:hover {
    color: var(--primary, #2A7B8C);
    transform: scale(1.1);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

@media (max-width: 991px) {
    .navbar {
        height: 70px;
    }

    .navbar.solid.light {
        background: rgba(255, 255, 255, 0.98);
    }

    .offset {
        height: 70px;
    }

    .hero-slideshow {
        min-height: 500px;
    }

    .gallery-tabs {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .gallery-tabs .btn {
        width: 100%;
    }

    .inner {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .inner2 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .hero-slideshow .slide-content h1 {
        font-size: 2.5rem;
    }

    .tabs-top .etabs {
        width: 100%;
        justify-content: center;
    }

    .tabs-top .tab a {
        padding: 10px 18px;
        font-size: 11px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info li {
        display: block;
        margin: 12px 0;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary, #2A7B8C), var(--secondary, #C4797A));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent, #D4A574);
    margin: 20px auto;
    border-radius: 2px;
}

.zaokruzi {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ============================================================================
   SMART GALLERY LAYOUT
   Orientation-aware layout for dynamically loaded galleries
   ============================================================================ */

/* Gallery container with flexbox layout */
.slide-portfolio-item-content .basic-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Explicit layout classes - full width for landscape photos */
.slide-portfolio-item-content .basic-gallery li.full-width {
    width: 100%;
    flex-shrink: 0;
}

/* Half width for portrait photos (paired side by side) */
.slide-portfolio-item-content .basic-gallery li.half-width {
    width: calc(50% - 8px);
    flex-shrink: 0;
}

/* Square photos: 2 per row */
.slide-portfolio-item-content .basic-gallery li.square {
    width: calc(50% - 8px);
    flex-shrink: 0;
}

/* Image styling within gallery items */
.slide-portfolio-item-content .basic-gallery li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Paired portrait photos - only outer corners rounded */
.slide-portfolio-item-content .basic-gallery li.pair-left {
    border-radius: 8px 0 0 8px !important;
}
.slide-portfolio-item-content .basic-gallery li.pair-left img {
    border-radius: 8px 0 0 8px !important;
}

.slide-portfolio-item-content .basic-gallery li.pair-right {
    border-radius: 0 8px 8px 0 !important;
    margin-left: -8px;
}
.slide-portfolio-item-content .basic-gallery li.pair-right img {
    border-radius: 0 8px 8px 0 !important;
}

.slide-portfolio-item-content .basic-gallery li a:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Loading state */
.slide-portfolio-item-content .basic-gallery li.loading-state,
.slide-portfolio-item-content .basic-gallery li.error-state {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--text-light, #6E6E7A);
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
    .slide-portfolio-item-content .basic-gallery li.full-width,
    .slide-portfolio-item-content .basic-gallery li.half-width,
    .slide-portfolio-item-content .basic-gallery li.square {
        width: 100% !important;
    }
}

/* Tablet: maintain 2-column for portraits/squares */
@media (min-width: 769px) and (max-width: 991px) {
    .slide-portfolio-item-content .basic-gallery {
        gap: 12px;
    }

    .slide-portfolio-item-content .basic-gallery li.half-width,
    .slide-portfolio-item-content .basic-gallery li.square {
        width: calc(50% - 6px);
    }
}

/* Desktop: wider sidebar with smart layout */
@media (min-width: 992px) {
    .slide-portfolio-item-content {
        width: 1000px !important;
        transform: translateX(1000px);
    }

    .slide-portfolio-item-content.slide-in {
        transform: translateX(0) !important;
    }

    main.slide-out {
        transform: translateX(-1000px) !important;
    }

    .slide-portfolio-item-content .basic-gallery {
        gap: 20px;
    }

    /* Ensure layout classes work on desktop */
    .slide-portfolio-item-content .basic-gallery li.full-width {
        width: 100%;
    }

    .slide-portfolio-item-content .basic-gallery li.half-width {
        width: calc(50% - 10px);
    }
}

/* Photo count badge */
.slide-portfolio-item-info .photo-count {
    display: block;
    font-size: 12px;
    color: var(--text-light, #6E6E7A);
    margin-top: 2px;
}
