@font-face {
    font-family: "ZKG Regular";
    font-display: swap;
    src: url(../fonts/Zen_Kaku_Gothic_New/ZenKakuGothicNew-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "ZKG Medium";
    font-display: swap;
    src: url(../fonts/Zen_Kaku_Gothic_New/ZenKakuGothicNew-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "ZKG Bold";
    font-display: swap;
    src: url(../fonts/Zen_Kaku_Gothic_New/ZenKakuGothicNew-Bold.ttf) format("truetype");
}

@font-face {
    font-family: "Solway Medium";
    font-display: swap;
    src: url(../fonts/Solway/Solway-Medium.ttf) format("truetype");
}

:root {
    --custom-lightgrey: #838383;
    --custom-grey: #666666;
    --custom-darkgrey: #303030;
    --custom-white: #fff;
    --custom-footergrey: #D9D9D9;
    --custom-sectiongrey: #F5F5F5;
    --standard-padding: 40px;

    --button-hover-bg: #525252;
}

.light.cc_dialog {
    padding: 1em 1.5em !important;
    max-width: 90% !important;
}

.hidden {
    display: none;
}

html {
    scroll-behavior: smooth;
}

.standard-padding {
    padding-left: var(--standard-padding);
    padding-right: var(--standard-padding);
}

/* popup */
.popup-modal {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 600px;
    /*height: 400px;*/
    height: fit-content;
    max-width: 95%;
    max-height: 95%;
    z-index: 1010;
    box-shadow: 0 0 15px -3px rgba(0,0,0,0.35);
    padding: 1.2em 1em;
    overflow: scroll;
}

/*.popup-modal .popup-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 1.2em 1em;
}*/

.popup-modal #closePopup {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.1em 0.3em;
    cursor: pointer;
    font-size: 25px;
    z-index: 100;
}
/* end of popup */

a,
body {
    font-family: "ZKG Regular", serif;
    color: var(--custom-darkgrey);
}

a {
    text-decoration: none;
}

.parallax-button {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transition: transform 0.05s ease, background-color 0.5s ease;
    transform-style: preserve-3d;
}

.top-btn.parallax-button {
    position: fixed;
    top: 30px;
    right: var(--standard-padding);
    z-index: 100;
}

.parallax-content {
    display: inline-block;
    transition: transform 0.1s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.parallax-cursor {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 9999;
    display: none;
}

.back-button,
.category-button,
.booking-button {
    font-family: "ZKG Medium", serif;
    padding: 1em;
    border: none;
    background-color: var(--custom-darkgrey);
    color: var(--custom-white);
    border-radius: 100px;
    text-transform: uppercase;
    /*transition: all 0.3s ease-in-out !important;*/
    overflow: hidden;
}

.category-button:hover,
.booking-button:hover {
    background-color: var(--button-hover-bg);
}

.collapsible-button {
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    display: flex;
    width: 212px;
}

.collapsible-button .collapsible-text {
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: inline-block;
}

.collapsible-text {
    margin-bottom: 2px;
}

body:not(.scroll-end) .collapsible-button {
    width: 58px;
}

body:not(.scroll-end) .collapsible-button .collapsible-text {
    width: 0;
    opacity: 0;
}

.parallax-inner {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
}

.greeting {
    font-family: "ZKG Medium", serif;
    color: var(--custom-lightgrey);
    font-size: 22px;
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.greeting span {
    font-family: "ZKG Bold", serif;
    color: var(--custom-darkgrey);
    line-height: 28px;
    font-size: 32px;
    letter-spacing: 6px;
}

.heading {
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-title,
.hero-title {
    font-size: 70px;
    color: var(--custom-grey);
    line-height: 80px;
    flex-basis: 67%;
}

.footer-title span,
.hero-title span {
    font-family: "Solway Medium", serif;
    color: var(--custom-darkgrey);
}

.footer-subtitle,
.hero-subtitle {
    font-size: 16px;
    color: var(--custom-lightgrey);
    line-height: 24px;
    flex-basis: 33%;
}

.emphasis-description span,
.footer-subtitle span,
.hero-subtitle span {
    font-family: "ZKG Bold", serif;
    color: var(--custom-darkgrey);
}

.emphasis-description span.simple-emphasis,
.footer-subtitle span.simple-emphasis,
.hero-subtitle span.simple-emphasis {
    font-family: "ZKG Regular", serif;
}

.hero {
    column-gap: 3em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: calc(100vh - 120px - 100px);
    padding-bottom: 2em;
}

.footer-inner {
    background-color: var(--custom-footergrey);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 0;
}

section,
header {
    background-color: var(--custom-white);
    z-index: 2;
    position: relative;
}

footer,
.footer-inner {
    height: 100vh;
}

.footer-info {
    display: flex;
    align-items: flex-end;
    height: calc(100vh - 120px);
    padding-bottom: 6em;
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    column-gap: 6em;
}

.footer-about {
    flex-basis: 50%;
}

.footer-title {
    margin-bottom: 1em;
}

.footer-contact {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    column-gap: 2.5em;
}

footer .social-links {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

footer .booking-button {
    visibility: hidden;
}

.contact-item img {
    width: 100%;
    object-fit: cover;
}

.contact-item .name {
    font-size: 36px;
    text-align: center;
}

.contact-item .name span {
    font-family: "Solway Medium", serif;
}

.contact-item .profession {
    font-family: "ZKG Medium", serif;
    text-align: center;
    color: var(--custom-grey);
    margin-bottom: 1em;
}

.contact-item .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.fullscreen-video-wrapper {
    filter: grayscale(100%);
    display: flex;
    position: fixed !important;
}

.fullscreen-video-wrapper video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/*sticky menu*/
.sticky-menu-wrapper {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: max-content;
    z-index: 999;
}

.sticky-menu {
    position: relative;
    display: flex;
    gap: 0.3em;
    padding: 8px;
    background-color: rgba(222, 222, 222, 0.4);/*#D9D9D9A6;*/
    backdrop-filter: blur(5px);
    border-radius: 100px;
}

.sticky-menu .menu-button,
.sticky-menu .menu-item {
    position: relative;
    padding: 10px 1em;
    text-decoration: none;
    color: var(--custom-darkgrey);
    z-index: 2;
    border-radius: 100px;
    transition: color 0.3s ease;
    font-family: "ZKG Medium", serif;
    text-transform: uppercase;
    user-select: none;
}

.sticky-menu .menu-button {
    cursor: pointer;
}

.sticky-menu .menu-button:hover,
.sticky-menu .menu-button.active {
    color: var(--custom-white);
}

.sticky-menu .menu-button.active {
    background-color: var(--custom-darkgrey);
}


.sticky-menu .menu-button:hover {
    background-color: var(--button-hover-bg);
}

.sticky-menu .menu-item.highlighted {
    color: var(--custom-white);
}

.sticky-menu .pill {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 0;
    background-color: var(--custom-darkgrey);
    border-radius: 100px;
    z-index: 1;
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}
/*sticky menu end*/

.clients-section {
    background-color: var(--custom-sectiongrey);
}

.emphasis-block {
    padding-top: 4em;
    padding-bottom: 4em;
    display: flex;
    justify-content: space-between;
    gap: 3em;
}

.emphasis-title {
    font-size: 64px;
    line-height: 80px;
    flex-basis: 38%;
}

.emphasis-description {
    color: var(--custom-grey);
    flex-basis: 38%;
}

.emphasis-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-left: 0;
    margin-bottom: 0;
    flex-basis: 24%;
}

.emphasis-list li {
    font-family: "ZKG Medium", serif;
    font-size: 20px;
    line-height: 24px;
    list-style-type: none;
}

.project-title-block {
    position: sticky;
    top: 0;
    height: max-content;
}

.project-section {
    display: flex;
    justify-content: space-between;
    gap: 2em;
    padding-top: 3em;
    padding-bottom: 6em;
}

.project-title-block {
    flex-basis: 30%;
}

.project-content-block {
    flex-basis: 70%;
}

.project-description {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding-top: 1em;
}

.project-title {
    font-size: 70px;
    line-height: 80px;
}

.project-client {
    margin-top: 1.5em;
    color: var(--custom-grey);
    font-size: 20px;
    line-height: 24px;
}

.project-client span {
    font-family: "ZKG Bold", serif;
    font-size: 24px;
}

.project-description :nth-child(1) {
    flex-basis: 28%;
}

.project-description :nth-child(2) {
    flex-basis: 36%;
}

.project-description :nth-child(3) {
    flex-basis: 36%;
}

.project-description ul {
    padding-left: 0;
    margin-bottom: 0;
}

.project-description ul li {
    list-style-type: none;
}

.module-title,
.project-description ul li,
.project-description .block-title {
    font-family: "ZKG Medium", serif;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 0.5em;
    color: var(--custom-darkgrey);
}

.project-modules {
    margin-top: 5em;
    display: flex;
    flex-direction: column;
    gap: 4em;
}

.module-content {
    text-align: center;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5em 0;
    position: relative;
}

.project-details,
.module-content {
    color: var(--custom-grey);
}

.module-content .quote-info {
    font-family: "ZKG Bold", serif;
    font-size: 12px;
}

.module-content .quote-info span {
    font-family: "ZKG Medium", serif;
}

.module-content .quote-symbol {
    position: absolute;
    top: -10px;
    left: -25px;
}

.module-content.quote-content {
    margin-top: 2em;
}

.gallery-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 0 5px;
    height: 100vh;
    position: fixed !important;
}

.max-height-block {
    height: 100vh;
}

.gallery-section .gallery-item {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 0.85;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item .gallery-item-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-close,
.open-bubble {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #D9D9D9A6;
    /*backdrop-filter: blur(5px);*/
    font-family: "ZKG Medium", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    line-height: 110%;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item .media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.gallery-item:hover .media-item {
    transform: scale(1.1);
}

.projects-section {
    padding-top: 4em;
    padding-bottom: 4em;
    min-height: 100vh;
}

.category-button {
    border: 1px solid var(--custom-darkgrey);
    text-transform: initial;
    padding: 0.65rem 1rem;
}

.category-button:not(.active) {
    color: var(--custom-darkgrey);
    background-color: var(--custom-white);
}

.category-button:not(.active):hover {
    background-color: #f1f1f1;
}

.projects-section .emphasis-title {
    margin-bottom: 0.5em;
}

.projects-section .category-list {
    margin-bottom: 1.5em;
    display: flex;
    gap: 0.7em;
}

.modal-media {
    position: relative;
    /*display: flex;
    justify-content: center;
    height: 100%;*/
    margin-left: auto;
    margin-right: auto;
    width: max-content;
}

.modal-media img,
.modal-media video {
    width: 100%;
    object-fit: contain;
    max-height: 70vh;
    cursor: default;
}

.gallery-modal-body {
    padding: 3.5em 6em;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#galleryModal .modal-dialog {
    --bs-modal-width: 100%;
    --bs-modal-margin: 0;
    height: 100vh; /*fallback*/
    height: 100dvh;
}

#galleryModal .modal-content {
    height: 100%;
}

.media-label {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(50%);
    background-color: var(--custom-white);
    border-top-right-radius: 5px;
    padding: 0.4em 0.8em;
    max-width: 75%;
}

#galleryModal .media-label {
    border-top-left-radius: 5px;
    text-align: center;
    transform: translateX(-50%);
    left: 50%;
    bottom: 1em;
    width: 95%;
}

.modal-close {
    position: absolute;
    bottom: 10%;
    right: 10%;
}

.project-list-title,
.modal-title {
    font-size: 24px;
    font-family: "ZKG Medium", serif;
}

.project-list-title {
    margin-bottom: 4px;
}

.project-list-description,
.modal-description {
    color: var(--custom-grey);
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 3.5em;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5em 2.5em;
}

.project-item {
    display: block;
    position: relative;
    height: max-content;
    grid-column: span 2; /* 50% (2/4 column) */
}

.project-item .horizontal-img {
    display: none;
}

.project-item:nth-child(3n) {
    grid-column: span 3; /* 75% (3/4 column) */
}

.project-item:nth-child(3n) .horizontal-img {
    display: block !important;
}

.project-item:nth-child(3n) .vertical-img {
    display: none !important;
}

.project-item:nth-child(6n+1) .horizontal-img,
.project-item:nth-child(6n+3) .horizontal-img,
.project-item:nth-child(6n+4) .horizontal-img {
    display: block;
}

.project-item:nth-child(6n+1) .vertical-img,
.project-item:nth-child(6n+3) .vertical-img,
.project-item:nth-child(6n+4) .vertical-img {
    display: none;
}

.project-item video,
.project-item img {
    max-width: 100%;
    border-radius: 5px;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.parallax-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: var(--custom-white);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    /*transition: all 0.1s;*/
    /*transition: all 0.1s ease-out;*/
    /*transition: all 0.3s ease-out;*/
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease; /*all 0.1s*/
    z-index: 10000;
}

.cursor.expand {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.1);
}

.page-end .cursor.expand {
    background: rgba(217, 217, 217, 0.1);
}

.cursor.expand-menu {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
}

.cursor.expand-category {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

.cursor.expand-close,
.cursor.expand-open {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    font-family: "ZKG Medium", serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor.expand-close {
    background-color: rgba(229, 229, 229, 0.65);
}

.cursor.expand-open {
    display: none !important; /*OFF*/
}

.cursor.expand-close::before {
    content: "CLOSE";
}

.cursor.expand-open::before {
    content: "OPEN";
}

.curtain {
    position: sticky;
    top: 0;
    width: 100%;
}

.social-link svg path {
    transition: fill 0.5s ease;
}

.social-link:hover svg path {
    fill: var(--button-hover-bg);
}

.small-contact-image {
    display: none;
}

.mobile-only.social-links {
    display: none;
}

.contact-item .contact-data {
    margin-top: 0.8em;
}

.category-button .collapsible-text {
    margin-bottom: 3px;
}

.modal-dismiss-button {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    display: none;
    position: absolute;
    top: 1.5em;
    right: 1em;
    z-index: 100;
}

body.no-scroll {
    overflow: hidden;
    padding-right: calc(100vw - 100%); /* Fenntartja a scrollbar helyét */
}

html {
    scrollbar-width: none;
}

.mobile-back-button {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: max-content;
    z-index: 999;
}

html, body {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.fixed-mt {
    margin-top: 55em;
}