/* ==========================================
   CSS MUUTTUJAT (VÄRIT JA PERUSARVOT)
   ========================================== */

:root {
    /* --- Base Palette --- */
    --color-white:          #ffffff;
    --color-black:          #000000;

    /* Accent colors - rose/blush palette */
    --color-accent:         #b88e75; /* Primary accent - blush rose */
    --color-accent-light:   #e8b4a8; /* Lighter rose - borders, highlights */
    --color-accent-dark:    #a67c6d; /* Darker rose - profile headings */
    --color-accent-mid:     #b89a91; /* Mid rose - contact headings */
    --color-accent-muted:   #cbb5b0; /* Muted rose - bullet points */
    --color-accent-pale:    #e1dbd6; /* Pale rose - btn bg, price-info heading */
    --color-accent-hover:   #c1b9b2; /* Hover rose - btn hover, social hover */
    --color-accent-btn-bg:  #d9d3ce;

    /* Text colors */
    --color-text-main:      #635f5e; /* Main body text */
    --color-text-secondary: #555555; /* Secondary text, labels */
    --color-text-footer:    #8a8082; /* Footer & footer headings */
    --color-text-price:     #998e8e; /* Price display */
    --color-text-dark:      #2c3e50; /* Menu toggle icon */
    --color-text-link:      #b5adae; /* Contact links */

    /* Background colors */
    --color-bg-light:       #f9f9f9; /* Subtle section bg */
    --color-bg-neutral:     #ebebeb; /* Footer, CTA bg */
    --color-bg-cream:       #fcf1ec; /* Note/highlight boxes */

    /* --- Functional Variables --- */

    /* Global Shadows (Consolidated) */
    --shadow-sm:    0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);   /* Used for Nav & Masonry */
    --shadow-md:    0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);   /* Used for Cards & Mobile Nav */
    --shadow-lg:    0 0.625rem 1.875rem rgba(0, 0, 0, 0.15); /* Used for Hero/Heavy items */

    /* Nav & UI */
    --color-nav-bg:         rgba(255, 255, 255, 0.95);
    --color-nav-mobile-bg:  rgba(255, 255, 255, 0.98);
    --shadow-nav:           0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    --shadow-nav-mobile:    0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    --color-overlay-dark:   rgba(0, 0, 0, 0.3);      /* Use this for Hero & Lightbox */

    /* Lightbox specific */
    --color-lb-overlay:     rgba(0, 0, 0, 0.95);
    --color-lb-counter:     rgba(0, 0, 0, 0.7);
    --color-lb-btn:         rgba(255, 255, 255, 0.2);
    --color-lb-btn-hover:   rgba(255, 255, 255, 0.3);
    --color-lb-btn-subtle:  rgba(255, 255, 255, 0.1);
    --color-lb-btn-fraction: rgba(0, 0, 0, 0.5);

    /* Gallery / Masonry */
    --shadow-masonry:       var(--shadow-sm);
    --shadow-masonry-hover: 0 0.5rem 1.562rem rgba(0, 0, 0, 0.15);
}


/* ==========================================
   RESET & PERUSASETUKSET
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Ganttlets';
    src: url('Ganttlets-400.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--color-text-main);
    background: var(--color-white);
    padding-top: 3.5rem;
}

h6 a {
    font-family: 'Ganttlets', sans-serif !important;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container h2 {
    color: var(--color-text-price);
}

.container-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
}


/* ==========================================
   TYPOGRAFIA & YLEINEN SISÄLTÖ
   ========================================== */

.page-content {
    padding: 3.75rem 0;
}

.intro-section {
    max-width: 50rem;
    margin: 0 auto 3.75rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

section p {
    color: var(--color-text-main);
}

section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.875rem;
    color: var(--color-text-main);
}


/* ==========================================
   NAVIGAATIO
   ========================================== */

nav {
    background: var(--color-nav-bg);
    padding: 0.9375rem 0;
    box-shadow: var(--shadow-nav);
    position: fixed;
    position: -webkit-sticky;
    top: 0;
    width: 100%;
    z-index: 10080;
}

nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.562rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color 0.3s;
    font-size: 0.9375rem;
}

nav a:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 0.3125rem 0.625rem;
}


/* ==========================================
   HERO-OSIOT
   ========================================== */

/* Etusivun hero */
.hero-home {
    width: 100%;
    aspect-ratio: 3 / 2; /* Standard widescreen shape */
    max-height: 37.5rem;
    max-width: 105rem;
    margin: auto;
    background-image: url('images/herokuva.webp');
    background-size: cover;
    background-position: center 37%;
    background-color: var(--color-accent-pale);
    position: relative;
}

.hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 50rem;
    padding: 0 1.25rem;
    margin-top: 10rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
    letter-spacing: 0.125rem;
}

.hero-content .tagline {
    font-size: 1.375rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-white);
}

/* Sivujen otsikko */
.page-header {
    background: var(--color-accent-pale);
    padding: 3.75rem 0;
    text-align: center;
    color: var(--color-white);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
}


/* ==========================================
   NAPIT
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.9375rem 2.5rem;
    background: var(--color-accent-btn-bg);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0.3125rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--color-accent-hover);
}

.btn-large {
    padding: 1.125rem 3.125rem;
    font-size: 1.125rem;
}


/* ==========================================
   PALVELUKORTIT (ETUSIVU)
   ========================================== */

.services-home {
    padding: 5rem 0;
}

.services-home h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3.75rem;
    color: var(--color-text-main);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.62rem, 1fr));
    gap: 1.875rem;
}

.service-card {
    position: relative;
    height: 25rem;
    overflow: hidden;
    display: block;
    background: var(--color-black); /* Provides a dark base for the dimming */
}

/* The Color Overlay */
.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use your brand's rose color with 30% opacity */
    /*background-color: rgba(166, 124, 109, 0.3); */
    transition: background-color 0.5s ease;
    z-index: 1; /* Sits above the image */
}

/* Dimming effect: darken the overlay on hover */
.service-card:hover::after {
    background-color: var(--color-lb-btn-hover); 
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem;
    z-index: 2; /* Ensures text is always on top of the overlay */
    text-align: center;
}

.service-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.725rem;
    color: var(--color-white); /* Ensure heading is white for the overlay */
}

.service-card p {
    color: var(--color-white); /* Ensure paragraph is white for the overlay */
    font-size: 1.2rem;
    margin: 0;
}

/*
.service-info h3, 
.service-info p {
    text-shadow: 
        -1px -1px 0 #7b7b7b,
         1px -1px 0 #7b7b7b,
        -1px  1px 0 #7b7b7b,
         1px  1px 0 #7b7b7b;
}*/


/* ==========================================
   MEISTÄ-OSIO (ETUSIVU)
   ========================================== */

.about-intro {
    padding: 2.25rem 0;
}

.intro-flex {
    display: flex;
    align-items: center;
    gap: 3.75rem;
}

.intro-image {
    width: 25rem;
    height: 25rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.intro-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.875rem;
}


/* ==========================================
   CTA-OSIO (ETUSIVU)
   ========================================== */

.cta-section {
    padding: 3.8rem 0;
    background: var(--color-bg-neutral);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.625rem;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}


/* ==========================================
   PAKETIT
   ========================================== */
#paketit {
    margin-top: 3rem;
    text-align: center;
    color: var(--color-text-price);
}

.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.875rem;
    margin-top: 2.5rem;
}

.package-card {
    background: var(--color-white);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.package-card h3 {
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-price);
    margin-bottom: 1.25rem;
}

.package-card ul {
    list-style: none;
    margin-bottom: 1.25rem;
}

.package-card li {
    padding: 0.5rem 0;
    padding-left: 1.562rem;
    position: relative;
}

.package-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.package-card.full-width {
    grid-column: 1 / -1;
}


/* ==========================================
   LAATIKOT (HUOMIO, CTA, HINTA)
   ========================================== */

/* Huomiolaatikko */
.note {
    background: var(--color-bg-cream);
    padding: 1.875rem;
    border-left: 0.25rem solid var(--color-accent-light);
    margin-top: 2.5rem;
}

.note p {
    font-size: 1.125rem;
    font-style: italic;
    margin: 0;
}

/* CTA-laatikko */
.cta-box {
    background: linear-gradient(135deg, var(--color-accent-pale) 10%, var(--color-accent-hover) 100%);
    padding: 3.125rem;
    text-align: center;
    margin: 3.75rem 0;
    color: var(--color-white);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 0.9375rem;
    font-weight: 300;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.875rem;
}

/* Hintatieto-laatikko */
.price-info {
    background: var(--color-bg-light);
    padding: 1.875rem;
    margin-top: 3.75rem;
}

.price-info h4 {
    color: var(--color-accent-pale);
    margin-bottom: 0.9375rem;
    font-size: 1.25rem;
    color: var(--color-accent-dark);
}

.price-info ul {
    list-style: none;
    padding-left: 0;
}

.price-info li {
    padding: 0.5rem 0;
    padding-left: 1.562rem;
    position: relative;
    color: var(--color-text-secondary);
}

.price-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent-muted);
    font-weight: bold;
}


/* ==========================================
   MEISTÄ-SIVU
   ========================================== */

.about-hero {
    margin-bottom: 3.75rem;
}

.about-hero-image {
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 2.5rem 1.25rem;
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 31.25rem;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}


.about-intro-text {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 50rem;
    margin: 0 auto 3.75rem;
    font-weight: 300;
}

/* Container for the two profiles */
.profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3.75rem;
    align-items: stretch;
}

.profile-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-image-container {
    width: 14rem;         
    height: 14rem;
    margin: 0 auto 1.5rem; 
    overflow: hidden;
    border-radius: 2rem;
    border: 0.15rem solid var(--color-accent-pale);
    flex-shrink: 0;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nudge-right {
    object-position: 65% center; 
}

.nudge-left {
    transform: scale(1);
    object-position: 35% center;
}

/* Adjust heading for the new layout */
.profile-card h2 {
    color: var(--color-accent-dark);
    margin-bottom: 1.25rem;
    font-size: 2.2rem;
    font-family: 'Ganttlets', serif; /* Using your accent font for names */
}

/* Ensure text stays left-aligned for readability even if container is centered */
.profile-card p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.profile-card p:last-of-type {
    margin-bottom: 0;
}

.about-location-note {
    background: var(--color-bg-cream);
    padding: 1.875rem;
    border-left: 0.25rem solid var(--color-accent-light);
    margin-top: 2.5rem;
    text-align: center;
    font-style: italic;
}

.about-location-note p {
    font-size: 1.125rem;
    margin: 0;
}


/* ==========================================
   YHTEYSTIEDOT-SIVU
   ========================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.75rem;
    margin-bottom: 3.75rem;
}

.contact-info {
    background: var(--color-bg-light);
    padding: 2.5rem;
}

.contact-item {
    margin-bottom: 1.875rem;
}

.contact-item h3 {
    color: var(--color-accent-mid);
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.contact-item a {
    color: var(--color-text-link);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--color-white);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form h2 {
    margin-bottom: 1.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3125rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 0.0625rem solid var(--color-accent-pale);
    font-family: inherit;
}

.form-group textarea {
    min-height: 9.375rem;
    resize: vertical;
}


/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--color-bg-neutral);
    color: var(--color-text-footer);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
    margin-bottom: 1.875rem;
    text-align: center;
}

.footer-section {
    margin: 1.25rem;
}

.footer-section h4 {
    margin-bottom: 0.9375rem;
    color: var(--color-text-footer);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.social-links a {
    color: var(--color-text-footer);
    text-decoration: none;
    margin: 0 0.625rem;
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--color-accent-hover);
}

/* ==========================================
   GALLERIA INTRO (KUVA + TEKSTI)
   ========================================== */

.gallery-intro {
    display: flex;
    align-items: center;
    gap: 3.125rem;
    max-width: 75rem;
    margin: 0 auto 1.875rem;
    padding: 3.125rem 1.25rem 1.875rem;
}

.gallery-intro-text {
    flex: 1;
}

.gallery-intro-text p {
    font-size: 1.188rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    margin-left: 5.5rem;
}

.gallery-intro-image {
    flex-shrink: 0;
    width: 23.75rem;
    height: 30rem;
    overflow: hidden;
}

.gallery-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-to-packages {
    display: inline-block;
    color: var(--color-accent-dark);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 0.0625rem solid var(--color-accent-dark);
    padding-bottom: 0.125rem;
    transition: color 0.3s, border-color 0.3s;
}

.scroll-to-packages:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.gallery-scroll-link {
    text-align: center;
    padding: 0.9375rem 1.25rem 1.875rem;
}

@media (max-width: 48rem) {
    .gallery-intro {
        flex-direction: column;
        gap: 1.875rem;
        padding: 1.875rem 0.9375rem 1.25rem;
    }

    .gallery-intro-image {
        width: 100%;
        height: 20rem;
        order: -1;
    }
}


/* ==========================================
   GALLERIA - MASONRY
   ========================================== */

.masonry-gallery {
    column-count: 3;
    column-gap: 1.25rem;
    padding: 0 1.25rem;
    max-width: 87.5rem;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-masonry);
    transition: all 0.3s ease;
}

.masonry-item:hover {
    box-shadow: var(--shadow-masonry-hover);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: none;
}


/* ==========================================
   LIGHTBOX (ISO KUVA)
   ========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-lb-overlay);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    margin-top: 2.175rem;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10001;
    background: var(--color-lb-btn);
    border: 0.125rem solid var(--color-white);
    color: var(--color-white);
    font-size: 1.875rem;
    width: 3.125rem;
    height: 3.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--color-lb-btn-hover);
    transform: rotate(90deg);
}

/* Lightbox - Swiper mode */
.lightbox-swiper {
    width: 90%;
    height: 90%;
    max-width: 87.5rem;
}

.lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-swiper .swiper-button-next,
.lightbox-swiper .swiper-button-prev {
    color: var(--color-white);
    background: var(--color-lb-btn-subtle);
}

.lightbox-swiper .swiper-button-next:hover,
.lightbox-swiper .swiper-button-prev:hover {
    background: var(--color-lb-btn);
}

.lightbox-swiper .swiper-pagination {
    color: var(--color-white);
}

.lightbox-swiper .swiper-pagination-fraction {
    background: var(--color-lb-btn-fraction);
    padding: 0.5rem 0.9375rem;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Lightbox - Manual/Masonry mode */
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-lb-btn);
    border: 0.125rem solid var(--color-white);
    color: var(--color-white);
    font-size: 2.5rem;
    width: 3.75rem;
    height: 3.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--color-lb-btn-hover);
}

.lightbox-prev {
    left: 1.875rem;
}

.lightbox-next {
    right: 1.875rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-lb-counter);
    color: var(--color-white);
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    z-index: 10001;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}
#modal-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ==========================================
   VIDEO PLAYER
   Lisää tämä styles.css-tiedoston loppuun
   ========================================== */
 
.video-section {
    margin: 3rem 0;
}
 
.video-section h2 {
    margin-bottom: 1.5rem;
}
 
/* Main player wrapper */
.video-player-wrap {
    background: #1e1410;
    border-radius: 6px;
    overflow: hidden;
}
 
/* The actual <video> element */
.video-main {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #1e1410;
    cursor: pointer;
}
 
/* Video title bar shown below the player */
.video-title-bar {
    padding: 0.2rem 1rem 0.5rem;
    background: #2c1f1a;
}
 
.video-title-bar h3 {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.2rem;
}
 
.video-title-bar p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
 
/* Thumbnail grid below the player */
.video-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
 
.video-thumb {
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--color-bg-light);
}
 
.video-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent-light);
}
 
.video-thumb.active {
    border-color: var(--color-accent);
}
 
/* Thumbnail image / poster area */
.video-thumb-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-accent-pale);
}
 
.video-thumb-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
/* Play icon overlay on thumbnail */
.video-thumb-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.2s;
}
 
.video-thumb:hover .video-thumb-poster::after,
.video-thumb.active .video-thumb-poster::after {
    background: rgba(0, 0, 0, 0.05);
}
 
.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(184, 142, 117, 0.82);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.2s, background 0.2s;
}
 
.video-thumb:hover .video-thumb-play {
    background: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.1);
}
 
/* Small triangle icon */
.video-thumb-play::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}
 
/* Thumbnail text */
.video-thumb-info {
    padding: 0.5rem 0.625rem 0.625rem;
}
 
.video-thumb-info h4 {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin: 0 0 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 
.video-thumb-info span {
    font-size: 0.75rem;
    color: var(--color-text-price);
}

/* ==========================================
   MOBILE VIEW
   ========================================== */

@media (max-width: 64rem) {
    .masonry-gallery {
        column-count: 2;
        column-gap: 0.9375rem;
        padding: 0 0.9375rem;
    }

    .masonry-item {
        margin-bottom: 0.9375rem;
    }
}

@media (max-width: 48rem) {

    .video-thumbs {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .video-main {
        aspect-ratio: 9 / 16;
        height: auto; /* Allow aspect-ratio to control height */
    }

    /* Hero */
    .hero-home {
        aspect-ratio: 1 / 1; /* Makes image area slightly taller for mobile */
        overflow: visible; /* Allows text to flow outside the container */
        background-size: 220vw;
        background-position: 50% 55%;
        margin-top: 0.6rem;
        height: 30rem;
    }

    .hero-overlay {
        flex-direction: column;
        justify-content: flex-end; /* Aligns content to the bottom */
        height: auto;
        min-height: 100%;
        background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        margin-top: 14rem;
    }

    /* 2. Position "Maj & Sami" Lower on the Image */
    .hero-content h1 {
        font-size: 2.625rem;
        margin-top: 2rem;
        margin-bottom: 2rem; /* Creates space from the bottom edge */
        padding: 0 1.25rem;
    }

    /* 3. Move Tagline below the image */
    .hero-content .tagline {
        background: var(--color-white); /* Match body background */
        color: var(--color-text-main); /* Standard text color */
        padding: 2rem 1.25rem;
        font-size: 1.125rem;
    }


    /* 4. Smaller "Palvelumme" Text */
    .services-home h2 {
        font-size: 1.875rem; /* Reduced from 2.625rem */
        margin-bottom: 2.5rem;
    }

    .services-home {
        margin-top: 7.5rem;
    }

    /* 1. Force a 2x2 Grid */
    .service-grid {
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 0.625rem; /* Smaller gap for tighter fit */
    }

    /* 2. Shrink the card height */
    .service-card {
        height: 15rem; /* Reduced from 25rem to fit better in a grid */
    }

    /* 3. Adjust font sizes for smaller cards */
    .service-card h3 {
        font-size: 1.1rem; /* Smaller heading */
        margin-bottom: 0.25rem;
    }

    .service-card p {
        font-size: 0.85rem; /* Smaller description */
    }

    .service-info {
        padding: 1rem 0.5rem; /* Less padding inside the card */
    }

    .intro-text {
        text-align: center;
        padding: 0 1rem;
    }

    .intro-text p {
        font-size: 1.0625rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        
        /*text-align: justify;*/
        text-justify: inter-word;
        text-align-last: center;
    }

    .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .intro-flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    .intro-image {
        width: 100%;
        height: 18.75rem;
    }

    /* Navigaatio */
    nav {
        padding: 0.625rem 0;
    }

    .logo {
        font-size: 1.125rem;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-nav-mobile-bg);
        flex-direction: column;
        padding: 1.25rem;
        box-shadow: var(--shadow-nav-mobile);
        align-items: stretch;
    }

    .nav-menu.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 0.9375rem;
        width: 100%;
    }

    nav ul li {
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.625rem;
        font-size: 1rem;
    }

    nav .container {
        position: relative;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.125rem;
    }

    /* Yhteystiedot */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Meistä-sivu */
    .about-hero-image {
        width: calc(100% - 1.25rem);
        margin: 0 0.625rem 1.875rem 0.625rem;
    }

    .about-hero-image img {
        height: 21.88rem;
        object-position: center 15%;
    }

    .about-intro-text {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }

    .profiles {
        grid-template-columns: 1fr;
    }
    
    .profile-image-container {
        width: 12rem;
        height: 15rem;
        margin-top: 1rem;
    }

    .about-location-note p {
        font-size: 1rem;
    }

    /* Galleria - Masonry */
    .masonry-gallery {
        column-count: 2;
        column-gap: 0.625rem;
        padding: 0 0.625rem;
    }

    .masonry-item {
        margin-bottom: 0.625rem;
    }

    /* Lightbox */
    .lightbox-overlay {
        margin-top: 3.5rem;
    }

    /* Ensure the content area covers enough space for easy clicking */
    .lightbox-content {
        width: 100%;
        height: 80vh;
        cursor: pointer;
    }

    /* Prevent image dragging from interfering with swipes */
    .lightbox-content img {
        user-select: none;
        -webkit-user-drag: none;
    }

    .lightbox-close {
        top: 0.625rem;
        right: 0.625rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .lightbox-swiper {
        width: 95%;
        height: 85%;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-counter {
        bottom: 0.9375rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 30rem) {
    .masonry-gallery {
        column-count: 2;
        column-gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .video-thumbs {
        grid-template-columns: 1fr 1fr;
    }
}