﻿@import url("./reset.css");
@import url("./common.css");


/* Navigation */
.nav-content .logo {
    height: 29px;
}

.search-guide .search-placeholder {
    color: hsl(0, 0%, 56%);
    font-size: 14px;
    margin-left: 6px;
}

.search-guide {
    width: 215px;
    background: hsl(0, 0%, 98%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 26px;
    border-radius: 3px;
    border: 1px solid hsl(0, 0%, 86%);
}

nav .nav-content {
    max-width: 935px;
    margin: 0 auto;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 735px) {
    nav .nav-content {
        padding: 0 20px;
    }
}

nav .mock {
    height: 54px;
}




.kontakt_button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-menu {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: none;
    gap: 60px;
}

.contact-item img {
    width: 90px;
    height: 90px;
    cursor: pointer;
}



#contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}


nav .fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid hsl(0, 0%, 86%);
    z-index: 1;
}

/* Profile */
header {
    margin-bottom: 44px;
}

.header-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 30px;
}

@media only screen and (max-width: 735px) {
    header {
        display: block;
        margin-bottom: 0px;
    }

    .header-wrap {
        display: flex;
        padding: 14px;
        column-gap: 0px;
    }
}

.header-wrap .profile-pic {
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .header-wrap .profile-pic img {
        width: 150px;
        height: 150px;
        border-radius: 1000px;
        border: 1px solid hsl(0, 0%, 86%);
    }

@media only screen and (max-width: 735px) {
    .header-wrap .profile-pic {
        width: 77px;
        height: 77px;
        margin-right: 28px;
    }

        .header-wrap .profile-pic img {
            width: 100%;
            height: 100%;
        }
}







.profile-info .title h2 {
    font-size: 28px;
    font-weight: 300;
}

.profile-info .title span {
    margin-left: 8px;
}

.profile-info .title button {
    margin-left: 20px;
}

@media only screen and (max-width: 735px) {
    .profile-info .title h2 {
        display: inline-block;
        margin-bottom: 12px;
    }

    .profile-info .title span {
        display: inline-block;
    }

    .profile-info .title button {
        display: block;
        margin-left: 0px;
    }
}

.profile-info .title {
    display: flex;
    align-items: center;
}

@media only screen and (max-width: 735px) {
    .profile-info .title {
        display: block;
    }
}

.profile-info .details li {
    font-size: 16px;
    font-weight: 400;
    margin-right: 40px;
}

    .profile-info .details li span {
        font-weight: 600;
    }

.profile-info .details ul {
    display: flex;
}

.profile-info .descriptions h1 {
    font-weight: 600;
    line-height: 24px;
}

.profile-info .descriptions span {
    font-weight: 400;
    line-height: 24px;
}

.profile-info .descriptions a {
    color: hsl(209, 100%, 21%);
}

@media only screen and (max-width: 735px) {
    .profile-info .descriptions {
        padding-left: 16px;
        padding-bottom: 21px;
        font-size: 14px;
        margin-bottom: 0px !important;
    }

        .profile-info .descriptions h1 {
            line-height: 20px;
        }

        .profile-info .descriptions span {
            line-height: 20px;
        }
}

.profile-info .row {
    margin-bottom: 20px;
}

    .profile-info .row.last {
        margin-bottom: 0px;
    }

/* Story */
.story-item .image {
    padding: 3px;
    border-radius: 1000px;
    border: 1px solid hsl(0, 0%, 86%);
}

    .story-item .image img {
        border-radius: 1000px;
        width: 77px;
        height: 77px;
        display: block;
    }

@media only screen and (max-width: 735px) {
    .story-item .image img {
        width: 56px;
        height: 56px;
    }
}

.story-item .title {
    padding-top: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (max-width: 735px) {
    .story-item .title {
        font-size: 12px;
        padding-top: 8px;
        font-weight: 400;
        width: 65px;
    }
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
}

@media only screen and (max-width: 735px) {
    .story-item {
        padding: 0px 5px;
    }
}

.stories {
    display: flex;
    justify-content: start;
    padding: 0 24px;
    overflow-x: scroll;
    position: relative;
    margin-bottom: 44px;
}

@media only screen and (max-width: 735px) {
    .stories {
        padding: 0;
        margin-bottom: 21px;
    }
}

.slider-button-next {
    position: sticky;
    right: 0;
    cursor: pointer;
}

/* Tabs */
.tab-item span {
    font-size: 12px;
    font-weight: 600;
    color: hsl(0, 0%, 56%);
    margin-left: 6px;
}

.tab-item {
    display: flex;
    align-items: center;
    height: 52px;
}

    .tab-item.active {
        border-top: 1px solid hsl(0, 0%, 15%);
        margin-top: -1px;
        color: hsl(0, 0%, 15%);
    }

.tabs {
    border-top: 1px solid hsl(0, 0%, 86%);
    display: flex;
    justify-content: center;
}

/* Mobile Tabs */
.mobile-tabs li {
    font-size: 14px;
    font-weight: 400;
    color: rgb(142, 142, 142);
    line-height: 18px;
    text-align: center;
}

    .mobile-tabs li div {
        font-weight: 600;
        color: rgb(38, 38, 38);
    }

.mobile-tabs ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 0;
    border-top: 1px solid rgb(219, 219, 219);
}

.mobile-tabs .actions {
    display: flex;
    justify-content: space-around;
    height: 44px;
    align-items: center;
    border-top: 1px solid rgb(219, 219, 219);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media only screen and (max-width: 735px) {
    .gallery {
        gap: 3px;
    }
}

.gallery-item {
    position: relative;
}

    .gallery-item img {
        width: 100%;
        display: block;
    }

    .gallery-item .media-icon {
        position: absolute;
        top: 0px;
        right: 0px;
    }

    .gallery-item .pushpin-icon {
        position: absolute;
        top: 0px;
        right: 0px;

    }


/* Stylowanie modalu */
.modal {
    display: none;
    position: fixed; /* Changed to fixed to ensure it appears above everything */
    z-index: 1001; /* Higher z-index to ensure it is above other elements */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* Dynamically adjust width to match the image */
    max-width: 100%; /* Ensure it doesn't exceed the screen width */
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

@media only screen and (max-width: 735px) {
    .modal {
        transform: translate(-50%, -50%) scale(1.2); /* Increase size by 20% on mobile */
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Ensure it appears behind the modal */
    display: none; /* Initially hidden */
}

.modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1003; /* Ensure the close button is above everything in the modal */
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .close-button:hover {
    color: #0073ff;
}

.modal-content {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-bottom: 1px solid #ddd;
}

.modal-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: auto; /* Dynamically adjust width */
    height: auto; /* Adjust height based on the image */
}

.modal-content-container {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth scrolling effect */
    width: auto; /* Dynamically adjust width based on content */
    height: auto; /* Adjust height based on the image */
    touch-action: pan-y; /* Allow horizontal scrolling on touch devices */
}

.modal-content-container img {
    flex-shrink: 0;
    width: auto; /* Maintain the image's natural width */
    max-width: 100%; /* Ensure it doesn't exceed the screen width */
    height: auto; /* Maintain the image's natural height */
    object-fit: contain;
    pointer-events: none; /* Prevent residual elements from interfering */
}

.caption-container {
    padding: 15px;
    font-size: 16px;
    color: #333;
    text-align: center;
    background-color: #f9f9f9;
}

.dots-container {
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 8px;
    background-color: #f9f9f9;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.active-dot {
    background-color: #0073ff;
}

.prev, .next {
    position: absolute;
    top: 50%;
    z-index: 1002; /* Ensure arrows are above other elements */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: -20px; /* Slightly overlap the image */
}

.next {
    right: -20px; /* Slightly overlap the image */
}

@media only screen and (max-width: 735px) {
    .prev, .next {
        width: 25px; /* Reduce width on mobile */
        height: 25px; /* Reduce height on mobile */
    }
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 40vh; /* 50% wysokości okna przeglądarki */
    left: 45vw; /* 50% szerokości okna przeglądarki */
    transform: translate(-50%, -50%); /* Przesunięcie środka elementu na środek ekranu */
    display: none;
    z-index: 1002;
    box-sizing: border-box;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Full-page overlay for the animation */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    z-index: 9999;
    transform: translateY(0); /* Start fully visible */
    animation: slideUp 1s ease-in-out forwards;
    animation-delay: 1s; /* Delay the animation by 1 second */
}

/* Keyframes for the slide-up animation */
@keyframes slideUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Lazy-loaded images */
.lazy {
    filter: blur(10px);
    transition: filter 0.3s;
}

.lazy:not([data-src]) {
    filter: none;
}

body.modal-open {
    overflow: hidden;
}

