@font-face {
    font-family: 'boska';
    src: url('./fonts/Boska-Bold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'switzer';
    src: url('./fonts/Switzer-Extralight.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'switzer';
    src: url('./fonts/Switzer-Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'switzer';
    src: url('./fonts/Switzer-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'melodrama';
    src: url('./fonts/Melodrama-Semibold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* ======================================== */
/* 1. Globale Stile & Resets                */
/* Hamburger Button */
.hamburger-btn {
    right: 25px;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    z-index: 1201;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 3px;
    margin: 2.5px 0;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger Nav Overlay */
.hamburger-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(.4, 1, .6, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px 30px;
}

.hamburger-nav-overlay.open {
    transform: translateX(0);
}

.hamburger-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.hamburger-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.hamburger-nav-link:hover {
    background: #f7f7f7;
}

/* Overlay Hintergrund für Klick außerhalb */
.hamburger-nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.hamburger-nav-bg.open {
    opacity: 1;
    pointer-events: auto;
}

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

body {
    font-family: 'switzer', switzer, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

h1,
h2,
h3,
h4 {
    font-family: 'melodrama', melodrama, serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 80;
}

h2 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 60px;
}

h3 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 40px;
}

h4 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    font-size: 30px;
}

.h-klein {
    font-family: 'switzer', switzer, sans-serif;
    font-size: 24px;
    color: #333;
}

p {
    font-family: 'switzer', switzer, sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 1rem;
}

/* ======================================== */
/* 2. Utility-Klassen                       */
/* ======================================== */

.max-width {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ======================================== */
/* 3. Layout: Header & Footer               */
/* ======================================== */

header {
    position: sticky;
    top: 63px;
    left: 50%;
    z-index: 1000;
}

.header-nav {
    width: calc(100vw - 14rem);
    max-width: 600px;
    padding: 1rem 3rem;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.073);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 32px 0 rgba(31, 67, 90, 0.10);
    backdrop-filter: blur(7px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(7px) saturate(180%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.logo-a {
    font-family: 'switzer', switzer, sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.logo-a span {
    font-family: 'boska', serif;
    font-weight: 600;
}

.header-nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.5s ease;
}

.header-nav-link:hover {
    transition: background-color 0.5s ease;
    background-color: #dfdfdf55;
    color: #333;
}

.header-nav-link.active {
    background-color: #ffffff55;
    border: #afafaf33 1px solid;
}

form {
    margin: 0 auto;
    padding: 35px 30px;
    width: calc(100% - 70px);
    max-width: 1200px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 30px 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.form-section h2 {
    margin-bottom: 1.5rem;
}

input,
textarea {
    font-family: 'switzer', switzer, sans-serif;
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form select {
    font-family: 'switzer', switzer, sans-serif;
    width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 width%3D%2210%22 height%3D%225%22 viewBox%3D%220 0 10 5%22%3E%3Cpath fill%3D%22%23333%22 d%3D%22M0 0l5 5 5-5z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px 5px;
}

form select:focus {
    border-color: #1f0033;
    box-shadow: 0 0 8px rgba(31, 0, 51, 0.2);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #1f0033;
    box-shadow: 0 0 8px rgba(31, 0, 51, 0.2);
    outline: none;
}

textarea {
    height: 150px;
    resize: none;
}

input.submit[type="submit"] {
    font-family: 'switzer', switzer, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #1f0033;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 1.5rem 0 0 0;
    width: auto;
}

input.submit[type="submit"]:hover {
    background-color: #3a0055;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


footer {
    padding: 1rem 4rem;
    background-color: #1f0033;
    color: #ddd;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    justify-self: center;
    width: 100%;
    justify-content: space-between;
    align-items: top;
    max-width: 1200px;
    margin-top: 30px;
}

.footer-logo {
    height: 70px;
}

.footer-nav-links {
    color: #ddd;
    margin: 0 0 30px 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-nav-link {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.5s ease;
}

.footer-nav-link:hover {
    text-decoration: underline #fff;
}


/* ======================================== */
/* 4. Komponenten (Homepage)                */
/* ======================================== */

.hero-image {
    position: absolute;
    top: 15px;
    left: 15px;
    background-position: center;
    object-fit: cover;
    width: calc(100vw - 30px);
    height: calc(100vh - 30px);
    border-radius: 30px 0 30px 30px;
    z-index: 2;
}

.hero-h1 {
    position: absolute;
    left: 50%;
    top: 210px;
    transform: translate(-50%);
    z-index: 99;
    font-size: 150px;
    font-family: 'switzer', switzer, sans-serif;
    font-weight: 300;
    color: #fff;
    text-shadow: #333 2px 2px 30px;
    text-align: center;
    line-height: 150px;
    width: calc(100vw - 120px);
}

.hero-h1 span {
    font-family: 'boska', serif;
    font-weight: 600;
}

.hero-h2 {
    z-index: 99;
    position: absolute;
    top: 360px;
    width: 100%;
    text-align: center;
    font-weight: 300;
    color: #fff;
    text-shadow: #000000 2px 2px 20px;
}

.main-homepage {
    margin-top: calc(100vh - 70px);
}

.bg-dark-violet {
    background-color: #1f0033;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.portfolio-card-large {
    color: #fff !important;
    background-size: cover;
    border-radius: 30px 0 30px 30px;
    padding: 20px 70px;
    grid-row-start: 1;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-card-small {
    background-size: cover;
    border-radius: 30px 0 30px 30px;
    padding: 0;
    aspect-ratio: 6 / 5;
    display: grid;
    align-items: end;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.1rem;
}

.portfolio-card-small h3 {
    font-size: 20px;
}

.portfolio-card-title {
    position: relative;
    margin-bottom: 10px;
    left: 10px;
    padding: 10px 15px;
    border-radius: 20px 0 20px 20px;
    width: calc(100% - 50px);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 32px 0 rgba(31, 67, 90, 0.10);
    backdrop-filter: blur(7px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(7px) saturate(180%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hintergrundbilder für Portfolio-Karten */
.bg-img-noe {
    background-image: url(./images/kategorien/noe-background.jpg);
}

.bg-img-foto {
    background-image: url(./images/kategorien/fotografie.jpg);
}

.bg-img-video {
    background-image: url(./images/kategorien/videografie.jpg);
}

.bg-img-illust {
    background-image: url(./images/kategorien/illustration.jpg);
}

.bg-img-design {
    background-image: url(./images/kategorien/design.jpg);
}

.about-section {
    background-color: #1f0033;
    color: #fff;
}

.about-section h2,
.about-section p {
    color: #fff;
}

.clients-section {
    margin-top: -70px;
    padding-bottom: 100px;
}

.clients-grid {
    min-height: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 30px 0 30px 30px;
    margin: 30px 0 -90px 0;
    width: calc(100% - 60px);
}

.clients-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.clients-grid img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}




/* ======================================== */
/* 5. Komponenten (Suche-Seite)             */
/* ======================================== */

.verschwommen {
    position: fixed;
    top: 0px;
    left: 0px;
    display: block;
    overflow: none;
    height: 230px;
    width: 100vw;
    z-index: 999;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0px, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0px, rgba(0, 0, 0, 0));
    background-color: #ffffff;
    backdrop-filter: blur(70px);
}

.mood-pic {
    background-image: url(./images/leuchtturm.jpg);
    background-size: cover;
    background-position: 35% 10%;
    height: 370px;
    background-color: #1f0033;
    display: flex;
    align-items: flex-end;
    /* Align items to the bottom */
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    border-radius: 16px 0 16px 16px;
    margin: 94px auto 100px auto;
    position: relative;
    overflow: visible;
}

.kategorien-bg {
    width: 100vw;
    height: 100vh;
    margin-top: -62px;
    background-color: #925c5c;
    z-index: -1;
}


.autocomplete-wrapper * {
    overflow: hidden !important;
}

.autocomplete-wrapper {
    position: absolute;
    width: calc(80% - 6rem);
    max-width: 600px;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    padding: 0 45px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 27px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: border-radius 0.s cubic-bezier(.4, 2, .6, 1), box-shadow 0.3s;
    min-height: 49px;
    height: 49px;
}

.autocomplete-wrapper.expanded {
    border-radius: 30px 30px 16px 16px;
    box-shadow: 0 8px 32px rgba(31, 67, 90, 0.13);
    /* Die Höhe wird per JS gesetzt */
}

.search-input {
    font-family: 'switzer', switzer, sans-serif;
    font-weight: 500;
    position: relative;
    margin: 0;
    z-index: 1;
    width: calc(100vw - 18rem);
    max-width: calc(600px - 40px);
    padding: 1rem;
    border: none;
    outline: none;
    border-radius: 30px;
    font-size: 1rem;
    background-color: transparent;
    box-shadow: none;
    transition: border-radius 0.3s cubic-bezier(.4, 2, .6, 1);
    color: #333;
    background-color: transparent;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: #333;
    opacity: 1;
}


.autocomplete-wrapper.expanded .search-input {
    border-radius: 30px 30px 30px 30px;
}

/* Ersetzt den #autocomplete-list Selektor für bessere Wartbarkeit */
.autocomplete-list {
    position: static;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    z-index: 2;
    list-style: none;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(.4, 2, .6, 1), max-height 0.3s cubic-bezier(.4, 2, .6, 1);
}


.autocomplete-list.visible {
    opacity: 1;
    pointer-events: auto;
}

.autocomplete-list li {
    background: transparent;
    padding: 0.7rem 15px 0.7rem 15px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.3s cubic-bezier(.4, 2, .6, 1);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInListItem 0.3s forwards;
    animation-delay: var(--delay, 0s);
    font-size: 1rem;
    display: flex;
    align-items: center;
    min-height: 1.2em;
    font-family: 'switzer', switzer, sans-serif;
    font-weight: 300;
}

.autocomplete-list li:last-of-type {
    background: transparent;
    margin-bottom: 16px;
}

@keyframes fadeInListItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    border-radius: 8px;
}

.category {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.category h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow-y: auto;
    padding: 1rem;
    margin: 0 -1rem;
}

.card {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}


/* ======================================== */
/* 6. Komponenten (Projekte-Seite)         */
/* ======================================== */

.projekte-hero {
    background-size: cover;
    background-position: 35% 10%;
    height: 370px;
    border-radius: 30px 0 30px 30px;
    margin: 120px auto 4rem auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background-color: #1f0033;
}

.projekte-hero .hero-h1 {
    position: static;
    transform: none;
    text-align: center;
    width: auto;
    font-size: 120px;
    line-height: 1;
}

.project-gallery {
    column-width: 400px;
    column-gap: 30px;
    margin-bottom: 4rem;
}

.projekt-karte {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    background: #fff;
    border-radius: 30px 0 30px 30px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    text-decoration: none;
    color: #333;
    box-sizing: border-box;

    /* Erzwingt GPU-Rendering für flüssige Animation */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    /* Behebt den Safari-Bug "Verschwinden bei transform" */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.projekt-karte:hover {
    /* Behält den 3D-Kontext bei der Animation bei */
    transform: translateY(-5px) translateZ(0);
    -webkit-transform: translateY(-5px) translateZ(0);
}

.projekt-karte .projekt-bild {
    width: 100%;
    height: auto;
    border-radius: 16px 0 16px 16px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.projekt-karte h3 {
    font-size: 2rem;
    font-family: 'melodrama', melodrama, serif;
    margin-bottom: 1rem;
    color: #1f0033;
}

.projekt-karte p {
    font-family: 'switzer', switzer, sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.projekt-kurzinfo {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
}

.projekt-kurzinfo ul {
    font-family: 'switzer', switzer, sans-serif;
    font-size: 0.9rem;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.projekt-kurzinfo li {
    margin-bottom: 0.5rem;
}

.projekt-kurzinfo li:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .project-gallery {
        column-width: 90%;
    }

    .projekte-hero .hero-h1 {
        font-size: 80px;
    }
}

.button-design {
    background-color: #1f0033;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: 'switzer', switzer, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-design:hover {
    background-color: #3a0055;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ======================================== */
/* 8. Komponenten (Projekt-Detailseite)    */
/* ======================================== */

/* Hero-Bereich (Jetzt angepasst an die Übersichtsseite) */
.detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    color: #fff;

    border-radius: 30px 0 30px 30px;
    margin: 4rem 0;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    /* Anpassung an Ihre Markenfarbe */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
}

.detail-hero h1,
.detail-hero h2,
.detail-hero p {
    color: #fff;
}

.detail-hero h1 {
    font-size: 100px;
}

.detail-hero .h-klein {
    font-weight: 300;
}

.detail-hero-beschreibung {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 800px;
    line-height: 1.5;
}

.detail-hero .projekt-kurzinfo {
    background-color: rgba(255, 255, 255, 0.1);
    /* Hellere, lesbarere Anpassung */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

/* Hauptinhalts-Container braucht kein oberes Padding mehr,
   da .detail-hero seinen eigenen Margin hat 
*/
main.max-width {
    padding-bottom: 4rem;
}

.text-content {
    /* max-width: 800px;  <-- Diese Zeile wird entfernt, um die volle Breite zu nutzen */
    margin: 0 0 4rem 0;
    /* <-- Geändert von '0 auto 4rem auto' */
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.text-content h3 {
    margin-top: 3rem;
    color: #1f0033;
}


.gallery-item {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 30px;
    border-radius: 30px 0 30px 30px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* KORREKTUR: Fehlenden Alpha-Wert hinzugefügt */
.lg-backdrop {
    background-color: rgb(255, 255, 255) !important;
}

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

.pdf-embed-wrapper {
    border-radius: 30px 0 30px 30px;
    overflow: hidden;
    margin: 2rem 0 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    height: 800px;
}

.pdf-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-download-btn {
    display: block;
    width: fit-content;
    margin: 1rem auto 4rem auto;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 30px 0 30px 30px;
    margin: 2rem 0 4rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ======================================== */
/* 9. Media Queries                         */
/* ======================================== */

@media only screen and (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .portfolio-card-large {
        min-height: 400px;
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .portfolio-card-small {
        grid-column-start: auto;
        grid-column-end: auto;
        grid-row-start: auto;
        grid-row-end: auto;
    }
}

@media only screen and (max-width: 1140px) {
    .hero-h1 {
        font-size: 90px;
        line-height: 90px;
    }

    .hero-h2 {
        top: 300px;
    }
}

@media only screen and (max-width: 705px) {
    .hero-h2 {
        top: 390px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-large {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .portfolio-card-small {
        grid-column-start: auto;
        grid-column-end: auto;
        grid-row-start: auto;
        grid-row-end: auto;
    }

    h1 {
        font-size: 60px;
        line-height: 60px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 30px;
    }

    .hero-h1 {
        font-size: 50px;
        line-height: 50px;
    }

    .hero-h2 {
        font-size: 20px;
        top: 280px;
    }

    .max-width {
        padding: 70px 40px;
    }

    .search-input {
        width: 100%;
        margin: 0;
        padding: 15px 0;
    }

    .autocomplete-wrapper {
        width: calc(100vw - 15rem);
    }

    header h1 {
        display: none;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        align-items: start;
        row-gap: 70px;
        text-align: left !important;
    }

    .footer-logo {
        margin-left: 20px;
    }

    .footer-nav-link {
        text-align: left !important;
    }

    .mood-pic {
        margin: 94px -2rem 2rem -2rem;
    }
}

@media only screen and (max-width: 450px) {

    .header-nav {
        margin: 0 25px;
        padding: 15px 20px;
        width: calc(100vw - 90px);
    }

    .hamburger-nav-overlay {
        width: 200px;
    }

    .portfolio-card-large {
        padding: 20px 35px;
    }
}

@media only screen and (max-width: 438px) {
    .hero-h2 {
        top: 320px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 350px) {
    .header-nav-links {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        row-gap: 0.3rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .header-nav-link {
        text-align: center;
    }

    h2 {
        font-size: 35px;
    }
}