:root {
    --black-rgb: 0 0 0;
    --black: var(--black-rgb);
    --dark-gray: rgb(35, 34, 33);
    --light-gray: rgb(80, 80, 80);
    --extra-light-gray: rgb(250, 250, 250);
    --gold: rgb(87, 82, 42);
    --purple: rgb(131, 62, 99);
    --white: rgb(255, 255, 255);

    --ui-font: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: var(--ui-font), sans-serif !important;
}

body {
    overflow-x: hidden;
    background-image: url("../assets/img/kazantzakis-signature.svg");
    background-repeat: no-repeat;
    background-position: calc(135% - 10px) calc(50% + 1065px);
    background-attachment: scroll; 
    background-size: auto 210%;    
}

@media screen and (max-width: 1920px)
{
    body {
        background-position: calc(145% - 10px) calc(50% + 1065px);
    }
}


@media screen and (max-width: 1600px)
{
    body {
        background-position: calc(200% - 5px) calc(50% + 1065px);
    }
}

@media (max-width: 1200px) {
  body {
    background-image: none;
  }
}

h1 {
    font-size: 70px;
    font-weight: 400;
}

h2 {
    font-size: 40px;
    font-weight: 400;
}

h3 {
    font-size: 24px;
    font-weight: 300;
}

p {
    font-size: 18px;
    font-weight: 420;
}

a:visited:not(#wpadminbar a:visited):not(.footer-nav a:visited):not(.mobile-button-banner a:visited) {
  color: var(--dark-gray) !important;
  text-decoration: none !important;
}


/* Mobile styles for contact form */
@media (max-width: 767px) {
  .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* spacing between left and right sides */
  }

  .wpcf7-form .left-side,
  .wpcf7-form .right-side {
    width: 100% !important;
  }

  /* Inputs full width */
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Submit button full width */
  .wpcf7-form input[type="submit"] {
    width: 100%;
    display: block;
    margin-top: 1rem;
  }
}


.active {
    color: var(--purple);
}

.hidden {
    display: none;
}

.no-scroll {
    overflow: hidden;
}

.main-btn {
    text-decoration: none !important;
    color: var(--dark-gray) !important;
    border: 1px solid var(--dark-gray) !important;
    font-weight: bold !important;
    padding: 16px 20px !important;
    background: none !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}

main:has(.outer-section-container) {
    display: flex;
    position: relative;
}


header {
  z-index: 10;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding: 3rem 1.8rem;
    background-color: var(--white);
}


header nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 50px auto 80px 30px;
}

header a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 11.9px;
}

header a.active {
    color: var(--purple);
}

header .socials {
    display: flex;
    gap: 7px;
}

.outer-section-container {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 188.6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-section {
    width: 100%;
    height: min(100vh, 500px);
    max-height: 500px;
    overflow: hidden;
    display: block;

    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;

    margin-bottom: 80px;
}

.hero-section.home {
    background-image: url("various images/NK/00296_150dpi.jpg");
}

.hero-section.search {
    background-image: url("various images/NK/00246_150dpi.jpg");
}

.hero-section.contact {
    background-image: url("various images/other/00590_02.jpg");
    background-position: center 30%;
}

.hero-section.mobile-list {
    background-image: url("various images/full letter scans/mobile-list-hero.png");
}

.hero-section.single-letter {
    background-image: url("various images/other/letter-page-hero.png");
}


.hero-section .hero-text {
    margin: auto;
    color: var(--white);
    font-weight: 400;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgb(var(--black-rgb) / 0.7);
}

.signature img{
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 1590px;
    z-index: -2;
}

.z-section {
    display: grid;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 9rem;
    margin-right: 5rem;
    z-index: 0;
    max-width: 58vw;
    margin: 0 auto;
}


.z-section img {
    max-width: 37vw;
}


.z-section .img-container {
    width: fit-content;
    height: fit-content;
    position: relative;
}

.z-section .img-container::after,
.contact-us-form label:has(textarea[name="your-message"])::after
{
    content: "";
    display: block;
    width: 56%;
    height: 116%;
    position: absolute;
    top: -8%;
    left: 0;
    z-index: -1;
    background-color: var(--gold);
}

.z-section .img-container.reverse::after {
    top: -8%;
    right: 0;
    left: 50%;
}

.z-section .img-container.reverse {
    padding-right: 30px;
}

.z-section .text-container h3 {
    color: var(--purple);
    margin-bottom: 2rem;
    font-weight: 400;
}

.z-section .text-container:not(.reverse) {
    padding: 0 30px 30px 60px;
    max-width: 700px;
}
@media screen and (max-width: 1683px) {
    .z-section .img-container:not(.reverse) img{
        margin-left: 28px;
    }
}


.z-section .text-container.reverse {
    justify-self: end;
    padding: 0 60px 30px 30px;
    max-width: 700px;
}

.z-section .main-btn a {
    text-decoration: none;
    color: var(--dark-gray);
}

.z-section .main-btn {
    margin-top: 2rem;
    cursor: pointer;
}

@media screen and (min-width: 1684px) {
    .z-section .img-container::after,
    .contact-us-form label:has(textarea[name="your-message"])::after {
        height: 110%;
        left: -50px;
        top: -5.3%;
    }

    .z-section .img-container.reverse::after {
        height: 110%;
        top: -5.3%;
    }

    .z-section img {
        max-width: 32vw;
    }
}

footer {
    background-color: var(--dark-gray);
    margin-top: 11rem;
    justify-self: end;
    padding: 40px 60px 40px 195px;
    display: flex;
    justify-content: space-between;
}



.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  width: 100%;
}

.footer-bottom-copyright p{
    color: var(--white) ;
    margin-bottom: 0 !important;
}
@media screen and (max-width: 1200px) {
    .footer-bottom-inner {
        flex-direction: column;
    }
}

/* Left spacer keeps the middle centered */
.footer-bottom-spacer {
  flex: 1;
}

.footer-bottom-img {
  flex: 0 0 auto;
  text-align: center;
}

.footer-bottom-img img {
  
  width: auto;
  height: auto;
}

.footer-powered {
  
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footer-powered .powered-text {
  font-size: 16px;
  color: #fff;
  opacity: 1;
}

.footer-powered img {
  max-height: 40px;
  width: auto;
}

/* ✅ Responsive layout for mobile */
@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-powered {
    margin-top: 1rem;
    justify-content: center;
  }

  .footer-bottom-spacer {
    display: none;
  }
}


@media screen and (min-width: 1041px) {
	footer {
		width: 88%;
		margin-left: 188.6px;
        flex-direction: column;
	}

    .footer-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom {
        display: flex;
        justify-content: center;
    }

    .footer-bottom-img {
        max-width: 100%;
        width: 800px !important;
    }
	
	footer img {
		height: auto;
	}
}

footer .logos {
    display: flex;
    align-items: center;
    gap: 2rem;
     padding-left: 50px;
}

footer .logos a img {
    width: 120px;
    height: auto;
   
}

footer .copyright {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
}

footer .copyright img {
    width: 45px;
    height: 17px;
}

.footer-bottom-img {
  text-align: center;
  margin-top: 20px;
}
.footer-bottom-img img {
  width: 100%; /* adjust size */
  height: auto;
  object-fit: cover;
}


.mobile-footer-content, .mobile-copyright {
    display: none;
}

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

    footer {
    padding: 40px 60px 40px 60px;
    flex-direction: column;
    
}

 .footer-top   {
    display: flex;
    flex-direction: column;
    align-items: center;
 }

 .footer-bottom-img {
    display: flex;
    justify-content: center;
 }

 .footer-bottom-img img {
  width: 100%; 
  max-width: fit-content !important;
 }

    header nav, header .socials {
        display: none;
    }

    header {
        position: sticky;
        z-index: 2;
        padding: 15px;
        box-shadow: 0 -28px 90px var(--dark-gray);
    }

    header .burger {
        display: block;
        position: absolute;
        top: 40%;
        right: 20px;
        cursor: pointer;
    }

    main {
        flex-direction: column !important;
    }

    .outer-section-container {
        margin-left: 0;
    }

    .hero-section {
        height: 20rem;
    }

    .hero-text {
        padding: 15px;
        font-size: 28px;
    }

    .z-section {
        gap: 2rem;
        margin: 0 !important;
        padding: 0;
    }

    main:not(.homepage) .signature {
        display: none;
    }

    main.homepage .signature img {
        bottom: 19em;
        max-height: 72%;
    }

    .z-section {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0;
    }

    .z-section .img-container {
        margin-bottom: 2rem;
    }

    .z-section .img-container.reverse img {
        padding-left: 0 !important;
    }

    .z-section img {
        width: 100%;
        height: auto;
    }


    .z-section .text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 30px 30px 30px !important;
    }

    .z-section .text-container.reverse {
        order: 5;
    }

    .z-section .img-container.reverse .text-container {
        order: 1;
    }


    .z-section,
    .z-section * {
        max-width: 100% !important;
    }

    footer .copyright {
        display: none;
    }

    .mobile-footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-top: 25px;
    }

    .mobile-footer-content p {
        color: var(--white);
    }

    .mobile-socials {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .mobile-socials img {
        height: 32px;
        width: auto;
    }

    .mobile-copyright p {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--white);
    }

    .mobile-copyright p img {
        height: 15px;
        margin-left: 5px;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        margin-top: 50px;
    }

    /*burger menu*/


    div:has(button.burger) {
        display: block !important;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 40;
        opacity: 0;
        transition: opacity 220ms ease;
        pointer-events: none;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(86vw, 360px);
        max-width: 100%;
        background: var(--white);
        z-index: 50;
        transform: translateX(-110%);
        transition: transform 300ms cubic-bezier(.2,.9,.3,1);
        display: flex;
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        box-shadow: 6px 0 18px rgba(0,0,0,0.06);
        overflow-y: auto;
    }

    .mobile-nav a:first-of-type {
        color: var(--purple);
    }

    .mobile-nav.open { transform: translateX(0); }
    .mobile-overlay.visible { opacity: 1; pointer-events: auto; }

    .mobile-nav__close {
        align-self: flex-end;
        border: none;
        background: none;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        color: var(--dark-gray);
    }

    .mobile-nav__links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    .mobile-nav__links a {
        text-decoration: none;
        color: var(--dark-gray);
        font-size: 18px;
        padding: 8px 0;
    }
    .mobile-nav__socials {
        margin-top: auto;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    .mobile-nav__socials img { height: 28px; width: auto; }

   .hidden { display: none !important; }

 .burger {
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .burger:focus, .mobile-nav__close:focus, .mobile-nav__links a:focus {
        outline: 3px solid rgb(var(--purple) / 0.14);
        outline-offset: 2px;
    }

}

/*search page*/
.search-section-intro {
    display: flex;
    justify-content: center;
}

.search-section p {
    text-align: center;
    margin: 0 6rem 5rem 6rem;
    font-size: 14px;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 4rem 6rem 4rem;
}

fieldset {
    border: none;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    width: 100%;
}

.search-form fieldset div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 560px;
}

.search-form button[type="submit"] {
    max-width: 140px;
    cursor: pointer;
    font-size: 12px;
    padding: 16px;
    margin-top: 27px;
}

.search-form label {
    width: 100%;
    max-width: 560px;
}

input {
    border: none;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
    min-width: 280px;
    width: 100%;
    margin-bottom: 2rem;
    font-size: 16px;
    outline: none;
    background: none;
    max-width: 560px;
}

input:focus {
    border-bottom-color: var(--dark-gray);
}

/* reset margin for Select2's dropdown input */
.select2-search__field {
  margin-bottom: 0 !important;
}

.search-results-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-results-section .grid-sizer {
    display: contents;
}

.search-results-section .alm-listing::after {
   
    display: none !important;
}

.search-results-section h2,
.view-more-section h2
{
    width: 88%;
    display: flex;
    justify-content: center;
    margin: 0 5rem 0 5rem;
    color: var(--purple);
    padding-bottom: 1rem;
    font-weight: 400;
    font-size: 23px;
}

.search-section .intro-text {
    max-width: 1440px;
}

@media screen and (max-width: 2560px) {
    .entry-content.container {
        padding-left: 10rem !important;
    }
}

.search-results-section .search-results {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: center;
    gap: 8rem;
    width: 100%;
    max-width: 1440px;
}

body.search .search-results-section .search-results {
    justify-content: flex-end;
    margin-bottom: 45px;
}

body.search .search-results-section .search-results .grid-item {
    max-width: 300px !important;
}

@media screen and (max-width: 2560px) {
    .search-results-section .search-result  {
       gap: 2rem;
    }

    body.search .search-results-section .search-results {
        gap: 7rem;
        justify-content: center;
    }
}

@media screen and (max-width: 1440px) {
    .search-results-section .search-results, body.search .search-results-section .search-results {
       gap: 1rem;
    }
}

.search-results-section .search-results a {
    text-decoration: none;
}

.footer-bottom-img img:not([src*="footer-all-logos-scaled.jpg"]):not([src*="footer-all-logos-en-scaled.jpg"]) 
  
 {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

.view-more-section button {
    border-radius: 0;
    padding: 16px 20px !important;
    height: fit-content;
}

.view-more-section .view-more-swiper .swiper-slide a.letter {
    text-decoration: none;
}

.letter-title {
    margin-top: 14px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 250;
    width: 100%;
}

.letter-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.letter-details .letter-description {
    margin-top: 0 !important;
}

.letter-description,
.letter .date,
.letter .object-number
{
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 500;
}

.letter .object-number {
    margin-top: 10px;
}

.letter-description
{
    margin-bottom: 10px;
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    main:not(.letter-list) .search-results-section {
        display: none;
    }

    .search-form fieldset {
        flex-direction: column;
        gap: 2rem;
    }

    .search-form button[type="submit"] {
        margin: 1rem auto 2rem auto;
        width: 150px;
    }

    .search-form {
        margin: 0 2rem 0 2rem;
    }

    .search-section p {
        margin: 0 2.3rem 5rem 2.3rem;
    }

    .search-form input {
        margin-bottom: 0;
    }
}

/*contact page*/
@media screen and (min-width: 881px) {
main:has(.contact) {
    height: 100%;
}
}

main:has(.contact) footer {
    margin-top: auto;
}

main:has(.contact) .signature img {
    height: 50%;
    bottom: 175px;
}

.contact-us-form {
    margin: 0 auto;
    display: flex;
    gap: 3.5rem;
}

.contact-us-form form {
    display: flex;
    gap: 3.5rem;
}

.contact-us-form h2 {
    color: var(--purple);
    font-size: 30px;
    margin-bottom: 2rem;
}

.contact-us-form p {
    font-size: 14px;
    font-weight: 500;
    max-width: 650px;
    margin-bottom: 6rem;
}

.contact-us-form fieldset {
    flex-direction: column;
    gap: 0;
}

.contact-us-form label:has(textarea[name="your-message"])::after {
    top: 0;
    left: 51%;
    height: 113%;
}

.contact-us-form fieldset.right-side span {
    font-weight: 250;
}

.contact-us-form fieldset.right-side,
.contact-us-form fieldset.right-side label,
textarea[name="your-message"] {
     height: 91.4%;
    min-width: 280px;
    width: 520px;

    @media screen and (max-width: 1425px) {
        width: 420px;

    }
}

label:has(textarea[name="your-message"]) {
    position: relative;
}

textarea[name="your-message"] {
    background-color: var(--extra-light-gray);
    border: 1px solid var(--light-gray);
    margin-top: 12px;
    outline: none;
    resize: none;
}

.contact-us-form .main-btn {
    padding: 16px 30px;
    cursor: pointer;
}

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

    .contact-us-form .left-side {
        margin-left: 4rem;
    }

    .contact-us-form .right-side {
        margin-right: 4rem;
    }
}

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

    .modal.image-modal:not(.hidden) {
    transform: scale(1.5);
}


    .hero-section.contact {
        margin-bottom:30px;
    }

    .contact-us-form {
        flex-direction: column;
        align-items: center;
        max-width: 85vw;
        gap: 0;
        margin-bottom: 50px;
    }

    .contact-us-form h2 {
        margin-bottom: 30px;
        font-size: 20px;
    }

    .contact-us-form input {
        margin-bottom: 30px;
    }

    .contact-us-form input::placeholder {
        font-size: 12px;
    }

    .contact-us-form .left-side {
        margin-left: 0;
    }

    .contact-us-form .right-side {
        margin-right: 0;
    }

    .contact-us-form input[type="text"],
    .contact-us-form fieldset.right-side,
    .contact-us-form fieldset.right-side label {
        width: 100%;
    }

    textarea[name="your-message"] {
        width: 85vw;
        align-self: center;
    }

    label:has(textarea[name="your-message"]) {
        display: flex;
        flex-direction: column;
    }

    textarea[name="your-message"] {
        height: 180px;
    }

    .contact-us-form p {
        margin-bottom: 3rem;
        font-size: 12px;
    }

    .contact-us-form span {
        display: none;
    }

    .contact-us-form .main-btn {
        margin: 3rem auto 0 auto;
        display: flex;
        justify-content: center;
        font-size: 12px;
    }
}

/*letters list*/
.letter-list a.grid-item {
    text-decoration: none;
}

.letter-list .search-results-section h2 {
    display: none;
}

.letter-list .search-results {
    margin: 0 auto;
}

.letter-list .search-results .letter {
    margin-bottom: 50px;
}

@media screen and (min-width: 769px) {
    .letter-list .search-results a.letter {
        max-width: 300px !important;
    }
}

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

    .letter-list .search-results.grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 45px;
        margin: 0 auto;
        width: 100% !important;
    }

    .letter-list .search-results .letter {
        margin-bottom: 0;
    }

    .grid-sizer {
        display: none;
    }

    .grid-item {
        /* max-width: 40vw !important; */
        height: auto;
    }

    .letter .letter-title {
        font-size: 12px;
    }

    .letter .letter-description,
    .letter .date,
    .letter .object-number{
        font-size: 10px;
    }
    .letter .letter-title,
    .letter .letter-description,
    .letter-list .search-results img {
        max-width: 158px;
    }

    .letter-list .search-results-section .main-btn {
        margin-top: 28px;
        font-size: 12px;
    }

    .contact-us-form .right-side textarea[name="your-message"] {
            margin-top: 25px;
    }

    body.search .search-results-section .search-results {
        justify-content: start;
        width: 100%;
        gap: 3rem;
        padding: 0 25px 0 25px;
    }

    /* body.search .search-results-section .search-results .letter {
        width: 100%;
    } */
}

/*single letter page*/
.single-letter h2 {
    margin-bottom: 35px;
}

.view-more-swiper {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.view-more-swiper .swiper-wrapper {
    align-items: center;
}

.view-more-swiper .swiper-button-next::after {
    right: 0;
}

.view-more-swiper .swiper-button-prev::after {
    left: 0;
}

.view-more-swiper .swiper-button-next::after,
.view-more-swiper .swiper-button-prev::after
{
    color: var(--light-gray);
    font-size: 20px;
    font-weight: 800;
}

.view-more-swiper img {
    max-width: 150px;
}

.view-more-swiper .letter-title {
    font-size: 16px;
}

.view-more-swiper .swiper-slide:first-of-type {
    margin-left: 3rem;
}

.single-letter-showcase {
    margin-bottom: 150px;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 75px;
}

.single-letter-showcase .about-letter {
    max-width: 500px;
}

@media screen and (max-width: 991px) {
    .single-letter-showcase .about-letter {
        max-width: 100%;

    }
}

.single-letter-showcase .letter-info p {
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 2rem;
    margin-top: 6px;

}

.single-letter-showcase .letter-description {
    padding-right: 5vw;
    margin-right: 1rem;
    /* border-bottom: 1px solid var(--light-gray); */
}

.single-letter-showcase .letter-info h5 {
    font-size: 16px;
    font-weight: 300;
}

.single-letter-showcase h2 {
    font-size: 26px;
    color: var(--purple);
    max-width: 350px;
}

.single-letter-showcase .share-icon {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    position: relative;

    @media screen and (max-width: 1300px) {
        margin-right: 20px;
    }
}

.single-letter-showcase .share-icon img {
    width: 27px;
    height: 27px;
}

.single-letter-showcase .share-icon .copy-link {
    display: none;
    position: absolute;
  bottom: 120%;
  left: 100%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.single-letter-showcase .share-icon .copy-link.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.single-letter-showcase .letter-actions {
    display: flex;
    gap: 5rem;
    padding-top: 25px;
    margin-bottom: 30px;
    border-top: 1px solid var(--light-gray);
}

.single-letter-showcase .letter-actions button {
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 300;
    color: var(--light-gray);
}

.images-swiper .swiper-wrapper {
    padding-bottom: 50px;
}

.images-swiper.swiper {
    margin: 0;
    position: relative;
}

.images-swiper img, .images-swiper {
    max-width: 40vw;
    min-width: 380px;
}

.images-swiper .swiper-button-next,
.images-swiper .swiper-button-prev {
    top: 95%;
    width: calc(var(--swiper-navigation-size)/ 6 * 27);
}

.images-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide .letter-title {
    margin-top: 15px;
}

.images-swiper .swiper-pagination {
    bottom: 4px;
}

.letter-actions button {
    cursor: pointer;
}

.images-swiper .custom-next,
.images-swiper .custom-prev {
    position: absolute;
    width: 44px;
    height: 44px;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    line-height: 0;
    font-size: 30px;
    z-index: 20;
    cursor: pointer;
    color: var(--light-gray);
}

.images-swiper .custom-next::after,
.images-swiper .custom-prev::after
{
    content: "";
    display: none;
}

.images-swiper .custom-next {
    right: 35%;
    bottom: -4px;
    top: auto;
}

.images-swiper .custom-prev {
    left: 35%;
    bottom: -4px;
    top: auto;
}

@media screen and (max-width: 1200px) {
    .images-swiper .custom-next {
        right: 32%;
    }

    .images-swiper .custom-prev {
        left: 32%;
    }
}

@media screen and (min-width: 1500px) {
    .images-swiper img, .images-swiper {
        max-width: 30vw;
    }
}

 @media screen and (min-width: 881px) {
         .mobile-button-banner {
            display: none;
        }
    }

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

    .letter-description {
        margin-right: 0 !important;
    }

    .single-letter-showcase .share-icon {
        display: none;
    }

    .single-letter-showcase {
        flex-direction: column;
        gap: 30px;
    }

    .images-swiper img, .images-swiper {
        max-width: 90%;
        min-width: 200px;
    }

    .about-letter {
        margin: 0 1rem;
        display: flex;
        flex-direction: column;
    }

    .about-letter h2 {
        display: none;
    }

    .single-letter-showcase h2.hidden {
        display: block;
        margin: 0 1rem;
    }

    .letter-actions {
        justify-content: center;
    }

    .letter-actions button {
        color: var(--purple) !important;
        position: relative;
        width: 80px;
    }

    .letter-actions button::after {
        content: "";
        position: absolute;
        background: url("../assets/img/mobile\ click\ arrow.svg") no-repeat center;
        right: -25px;
        bottom: 10px;
        width: 20px;
        height: 8px;
    }

    .about-letter .main-btn:not(.mobile-button) {
        display: none;
    }

   

    .single-letter-showcase .mobile-button-banner {
        justify-self: center;
        display: flex;
        justify-content: center;
        width: 100vw;
        background-color: var(--purple);
        height: 100px;
        position: relative;
    }

    
    .single-letter-showcase .mobile-button-banner::after {
        position: absolute;
        content: "";
        bottom: 0;
        left: 0;
        opacity: 0.75;
        width: 100%;
        height: 100%;
        background: url("../assets/img/mobile-signature.svg") no-repeat center;
        background-size: cover;
    }

    .single-letter-showcase .mobile-button-banner .main-btn {
        color: var(--white) !important;
        z-index: 1;
    }

    .single-letter-showcase .main-btn {
        height: 60%;
        margin-top: 20px;
        /* color: var(--white) !important; */
        border-color: var(--white) !important;
    }

    .single-letter-showcase .letter-description {
        padding-bottom: 65px !important;
    }

    .view-more-section h2 {
        margin: 0 2rem 2rem 2rem;
        display: flex;
        justify-content: center;
        width: auto;
    }

    .view-more-swiper {
        max-width: 90vw;
        padding-bottom: 60px !important;
    }
    

    .view-more-section .swiper-slide {
        width: fit-content !important;
    }

    .view-more-section .swiper-button-next {
        right: 37%;
        top: auto;
        bottom: 0;
    }

    .view-more-section .swiper-button-prev {
        left: 37%;
        top: auto;
        bottom: 0;
    }

    .view-more-section .swiper-button-next::after,
    .view-more-section .swiper-button-prev::after{
        font-size: 25px;
        font-weight: 1000;
    }

    .single-letter-showcase {
        margin-bottom: 5rem;
    }

    .images-swiper .custom-next {
        right: 35vw;
    }

    .images-swiper .custom-prev {
        left: 35vw;
    }
}

@media screen and (max-width: 630px) {
    .images-swiper .custom-next {
        right: 29vw;
    }

    .images-swiper .custom-prev {
        left: 29vw;
    }
}

@media screen and (max-width: 385px) {
    .images-swiper .custom-next {
        right: 28vw;
    }

    .images-swiper .custom-prev {
        left: 28vw;
    }
}

/*lightbox*/
.show-modal {
    cursor: pointer;
}

.show-image-modal:hover {
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 12%;
    left: 15%;
    width: 70vw;

    background-color: white;
    padding: 30px 10px;
    box-shadow: 6px 6px 0 rgb(0, 0, 0);
    z-index: 10;
    height: fit-content;
    max-height: 80%;
    overflow-y: auto;

    @media screen and (min-width: 768px) {
        padding-top: 50px;
        padding-right: 40px;
        width: 90vw;
        left: 5%;
    }
}

.modal .arrows {
    display: flex;
    position: fixed;
    top: 50%;
    right: 5%;
    rotate: 90deg;
    gap: 25px;
    font-size: 30px;
    cursor: pointer;
    z-index: 999999;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.modal h2 {
    margin-bottom: 0;
}

.modal .date {
    border-top: 1px solid var(--light-gray);
    padding-top: 40px;
    font-weight: 500;
    font-size: 1.25rem;
}

.modal:not(.hidden) {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* backdrop-filter: blur(3px); */
    z-index: 5;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent url("svg assets/SVG/desktop x icon.svg") no-repeat center;
    background-size: contain;
    cursor: pointer;
    padding: 0;
}


/* By default hide mobile icon */
.close-icon.mobile-icon {
  display: none;
}

@media (max-width: 768px) {
  .close-icon.desktop-icon {
    display: none;
  }
  .close-icon.mobile-icon {
    display: inline;
  }
}

.search-form .select2-container--default .select2-selection--single {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--dark-gray) !important;
    /* padding-bottom: 10px; */
    padding-bottom: 2.4rem;
}

@media screen and (min-width:769px) {
      .search-form fieldset:has(input[type="text"])
    {
       margin-top: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .search-form fieldset div {
    gap: 0;
    }
    
    form.search-form,
    .search-form fieldset div  {
        gap: 2rem;
    }

    form.search-form .search-results-section {
        margin-top: 2rem;
    }
}

.search-form fieldset:not(:has(input[type="text"])) {
    display: flex;
}


/*final fixes and changes*/
@media screen and (min-width:1024px){
	.z-section .main-btn {
    position: relative;
    left: 0%;
    top: 0;
}
}

.z-section {
    padding-bottom: 5rem;
}

footer.site-footer {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .search-form label:has(input[type="text"]:not(.mobile)) {
    display: none;
}
}

@media screen and (min-width: 769px) {
    .search-form fieldset div.mobile-search-input {
        display: none !important;
    }
}

.footer-menu {
  margin: 2rem 0;
}

.footer-menu .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}



.footer-menu .footer-nav a {
  color: #fff;            /* white text */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu .footer-nav a:hover {
  color: #EC008C;         /* secondary color */
}

/* Responsive visibility */
.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only  {
     display: block;
     text-align: center;
     }
}


.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li a:visited {
    text-decoration: none;
    color: var(--dark-gray) !important;
}
/* === SIGNATURE SVG FIXED POSITIONING (no DOM side-effects) === */
@media (max-width: 1200px) {
  .signature-svg-wrapper {
    display: none !important;
  }
}

@media (min-width: 1201px) {
  .signature-svg-wrapper {
    display: none;
    position: absolute;
    inset: 0;             /* reference relative to hero container */
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }

  /* Prevent it from extending page width */
  .signature-svg-wrapper svg {
    position: absolute;
    left: 111%;             /* position relative to hero width */
    top: 500px;
    width: 50%;          /* fixed or responsive size */
    height: auto;
    transform: translateX(-50%); /* center around 90% */
    display: block;
  }

  .signature-svg-wrapper path {
    /* fill: black; */
    opacity: 1;
  }

  /* Make sure hero sections act as positioning context */
  .hero-section {
    position: relative;
    overflow-x: clip; /* ✅ prevents horizontal scroll in all browsers */
  }
}


/* Desktop-only floating top bar */
@media (min-width: 1024px) {
    .floating-header-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        padding: 20px 0;
        background: rgba(35, 34, 33, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 8;
        pointer-events: none;
    }

    .floating-header-image img {
        max-width: 400px;
        height: auto;
    }

    /* Hide footer version of the image on desktop */
    .footer-bottom-img {
        display: none !important;
    }
}

/* Hide floating bar on tablet & mobile */
@media (max-width: 1023px) {
    .floating-header-image {
        display: none !important;
    }
}
