﻿/* ==========================================================
   FOTIM BYTY - public/css/app.css
   Design system based on jirisebek.cz conventions
   ========================================================== */

/* --- Base --- */
body { background:#fff; color:#000; font-family:"Manrope",serif; font-weight:400; padding:0; margin:0; }
a { color:#000; cursor:pointer; }
a:hover { text-decoration:none; }
img { display:inline-block; max-width:100%; }

/* --- Layout --- */
.page_section { display:flex; flex-direction:column; margin:0 auto; max-width:1600px; }
.page_content { margin:0 62px; }

/* --- Header / Nav --- */
.page_header {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    padding: 40px 42px 40px 62px;
}
.page_header_logo {
    font-family: "Jost", serif;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.05em;
}
.page_nav {
    font-family: "Jost", serif;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.page_nav > a {
    border-bottom: 1px solid transparent;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    text-decoration: none;
    text-transform: uppercase;
}
.page_nav > a:hover { border-bottom: 1px solid #000; }
.page_nav > a.active { text-shadow: 0 0 1px; }

/* Mobile nav opener (hamburger) */
.page_nav_mobile_opener {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    height: 35px;
    width: 42px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.page_nav_mobile_opener span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
}

/* Mobile panel */
.page_nav_mobile_panel {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}
.page_nav_mobile_panel > div {
    background-color: #E7E7E7;
    border-radius: 0 0 0 30px;
    box-shadow: -4px 6px 10px #00000030;
    padding: 25px;
    position: relative;
    z-index: 1200;
}
.page_nav_mobile_closer {
    cursor: pointer;
    display: flex;
    font-size: 32px;
    justify-content: end;
}
.page_nav_mobile_click_away {
    background-color: #000000a0;
    inset: 0;
    position: fixed;
    z-index: 1100;
}
.page_nav_mobile_links > a {
    color: #000;
    display: block;
    font-family: "Jost", serif;
    font-size: 22px;
    min-width: 200px;
    padding: 12px 18px;
    text-decoration: none;
}

/* --- Section headings --- */
.section_heading { text-align: center; }
.section_heading_text {
    display: inline-block;
    font-family: "Jost", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding-top: 28px;
    position: relative;
    text-transform: uppercase;
}
.section_heading_text:after {
    border-top: 3px solid #000;
    content: "";
    inset: 0 0 auto 0;
    margin: 0 15%;
    position: absolute;
}
.section_text {
    font-size: 20px;
    letter-spacing: 0.05em;
    margin: 0 auto;
    text-align: center;
}

/* --- Button --- */
.button_primary {
    background: none;
    border: 1px solid #000;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.07em;
    padding: 15px 25px;
    text-decoration: none;
    text-transform: uppercase;
}
.button_primary:hover { background-color: #F0F0F0; }

/* --- Gallery grid --- */
.gallery_cube { display: flex; flex-wrap: wrap; row-gap: 32px; }
.gallery_cube_link { overflow: hidden; text-align: center; text-decoration: none; }
.gallery_cube_link > img {
    aspect-ratio: 1.5;
    display: block;
    object-fit: cover;
    transition: transform .2s;
    width: 100%;
}
a.gallery_cube_link:hover > img { transform: scale(1.07); }
.gallery_cube_link > span {
    font-family: Jost, serif;
    font-size: 22px;
    font-weight: 300;
    display: block;
    padding: 10px 12px 12px 12px;
    text-transform: uppercase;
}
.gallery_cube_3 img { aspect-ratio: 1.5; }
.gallery_cube_4 img { aspect-ratio: 1.28; }

/* --- Gallery wide (projects grid) --- */
.gallery_wide { display: flex; flex-wrap: wrap; gap: 13px; }
.gallery_wide_link { aspect-ratio: 1.5; display: block; overflow: hidden; position: relative; width: calc(100% / 3 - 17px); }
.gallery_wide_link > img { display: block; height: 100%; left: 0; object-fit: cover; position: absolute; top: 0; width: 100%; }
.gallery_wide_zooms > .gallery_wide_link > img { transition: transform .2s; }
.gallery_wide_zooms .gallery_wide_link:hover > img { transform: scale(1.07); }
.gallery_wide_hover { align-items: center; aspect-ratio: 1.5; background-color: #272727CC; color: #fff; display: inline-flex; flex-direction: column; inset: 0; justify-content: center; letter-spacing: 0.05em; opacity: 0; overflow: hidden; position: absolute; text-align: center; transition: opacity 0.5s linear; width: 100%; }
.gallery_wide_link:hover > .gallery_wide_hover { opacity: 1; }
.gallery_wide_title { font-size: 22px; font-weight: 700; padding: 12px; }
.gallery_wide_desc { font-size: 18px; font-weight: 400; margin-top: 3px; padding: 15px 12px 12px 12px; position: relative; }
.gallery_wide_desc:after { border-top: 3px solid #fff; content: ""; inset: 0 0 auto 0; margin: 0 15%; position: absolute; }

/* --- Hero carousel --- */
.carousel_wrap {
    align-items: center;
    display: flex;
}
.carousel {
    align-items: stretch;
    display: flex !important;
    flex: 1;
    max-height: 100dvh;
    min-width: 0;
    order: 0;
}
.carousel_navs {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 62px;
    justify-content: center;
    width: 62px;
}
.carousel_navs_prev { order: -1; }
.carousel_navs_next { order: 1; }
.carousel_nav_prev,
.carousel_nav_next {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 100%;
    transition: transform .2s;
    width: 100%;
}
.carousel_nav_prev:hover, .carousel_nav_next:hover { transform: scale(1.4); }
.carousel_nav_prev { background-image: url("/images/ico_prev.svg"); }
.carousel_nav_next { background-image: url("/images/ico_next.svg"); }
.carousel_slides { aspect-ratio: 1.7745; flex-grow: 1; max-height: calc(100dvh - 200px); position: relative; }
.hp_carousel { margin-bottom: 45px; max-height: calc(100dvh - 235px); }
.hp_carousel .slide { aspect-ratio: 16/9; max-height: calc(100dvh - 235px); }
.hp_carousel img { height: 100%; object-fit: cover; width: 100%; }

.hp_more_projects { display: flex; justify-content: center; margin-top: 2rem; margin-bottom: 2rem; }

/* Slick overrides */
.slick-list { aspect-ratio: 16/9; width: 100%; }
.slick-slide { max-height: calc(100dvh - 235px); }

/* --- Footer --- */
.page_footer {
    background-color: #F7F7F7;
    font-size: 16px;
    letter-spacing: 0.05em;
    line-height: 1.7em;
    margin-top: 62px;
}
.page_footer_head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 50px 35px;
    gap: 2rem;
}
.page_footer_info { flex-grow: 1; }
.page_footer_info p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.page_footer_info a {
    color: #111;
    font-size: 0.9rem;
}
.page_footer_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
}
.page_footer_menu li {
    margin-bottom: 0.5rem;
}
.page_footer_menu li a {
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
}
.page_footer_menu li a:hover {
    text-decoration: underline;
}
.page_footer_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 50px;
    border-top: 1px solid #e0e0e0;
}
.page_footer_watch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #111;
    text-decoration: none;
}
.page_footer_watch:hover {
    text-decoration: underline;
}
.page_copyright {
    text-align: center;
    padding: 27px 0 62px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* --- Utilities --- */
.tac { text-align: center; }
.mt24 { margin-top: 24px; }
.mt40 { margin-top: 40px; }
.mt56 { margin-top: 56px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Phablet: >= 576px */
@media only screen and (min-width: 576px) {
    .gallery_wide_link { width: calc(100% / 2 - 13px); }
}

/* Desktop: >= 992px */
@media only screen and (min-width: 992px) {
    .page_nav_mobile_opener { display: none; }
    .page_nav { display: flex; }
    .gallery_cube_3 > .gallery_cube_link { width: calc(100% / 3 - 18px); }
    .gallery_cube_4 > .gallery_cube_link { width: calc(100% / 4 - 21px); }
    .gallery_wide_link { width: calc(100% / 3 - 17px); }
    .gallery_cube { column-gap: 27px; }
    .gallery_cube_4 { column-gap: 28px; }
    .page_footer_head { flex-direction: row; }
    .page_copyright { flex-direction: row; }
}

/* --- Bio page --- */
.bio_content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.bio_photo img {
    width: 300px;
    height: 400px;
    object-fit: cover;
}

.bio_text h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bio_text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .bio_content {
        flex-direction: column;
        gap: 2rem;
    }
    .bio_photo img {
        width: 100%;
        height: 300px;
    }
}

/* --- Contact page --- */
.contact_layout {
    display: flex;
    gap: 4rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    align-items: flex-start;
}

.contact_info {
    min-width: 220px;
}

.contact_info h2 {
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact_info p {
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.6;
}

.contact_info a {
    color: #111;
}

.contact_form {
    flex: 1;
}

.form_group {
    margin-bottom: 1.5rem;
}

.form_group label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #111;
}

.form_group input,
.form_group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111;
    background: #fff;
    box-sizing: border-box;
}

.form_group input:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #111;
}

.form_error {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.alert_success {
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem 2rem;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert_error {
    max-width: 900px;
    margin: 1rem auto;
    padding: 1rem 2rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Contact page v2 (jirisebek style) --- */
.section_subheading {
    font-family: 'Jost', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3rem;
    margin-bottom: 0;
}

.col_cards_avatar {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 700px;
}

.col_cards_title {
    font-family: 'Jost', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.col_cards_subtitle {
    color: #666;
    margin-bottom: 1rem;
}

.col_cards_list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact_mail {
    color: #111;
    text-decoration: none;
}

.contact_mail:hover {
    text-decoration: underline;
}

.col2_box {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
    max-width: 700px;
}

.ico_wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111;
    text-decoration: none;
}

.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3rem 0;
}

.form_contact {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    align-items: start;
    max-width: 700px;
    margin-top: 2rem;
}

.form_contact label {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.75rem;
}

.form_contact input,
.form_contact textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #111;
    box-sizing: border-box;
}

.form_contact input:focus,
.form_contact textarea:focus {
    outline: none;
    border-color: #111;
}

@media (max-width: 768px) {
    .form_contact {
        grid-template-columns: 1fr;
    }
    .col_cards_avatar {
        flex-direction: column;
    }
    .col2_box {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .contact_layout {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Tablet: <= 991px */
@media only screen and (max-width: 991px) {
    .page_header { padding: 20px; }
    .page_content { margin: 0 20px; }
    .page_nav { display: none; }
    .page_nav_mobile_opener { display: flex; }
    .gallery_cube_link { width: calc(100% / 2 - 12px); }
    .gallery_cube_4 > .gallery_cube_link { width: calc(100% / 2 - 12px); }
    .gallery_cube { column-gap: 24px; }
    .section_text { font-size: 17px; }
    .page_footer_head { flex-direction: column; padding: 30px; }
    .page_footer_foot { padding: 20px 30px; flex-direction: column; gap: 12px; }
}

/* Mobile: <= 576px */
@media only screen and (max-width: 576px) {
    .gallery_cube_link { width: 100%; }
    .page_footer_head { padding: 20px; }
    .page_footer_foot { padding: 16px 20px; }
    .hp_carousel { margin-bottom: 48px; }
    .section_heading_text { font-size: 22px; }
    .section_text { font-size: 15px; }
}
/* Bio section on contact page */
.bio_section {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 2rem 0 3rem;
}
.bio_section_text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .bio_section { flex-direction: column; gap: 2rem; }
    .bio_section_photo img,
    .bio_section_photo div { width: 200px !important; height: 200px !important; }
}

/* nanogallery2 lightbox overrides */
.nGY2Viewer {
    background-color: #fff !important;
}
.nGY2Viewer .toolbar {
    color: #000 !important;
    text-shadow: none !important;
}
.rotateLeftButton, .rotateRightButton, .fullscreenButton, .nGY2Icon-resize-full, .nGY2ViewerToolsTopLeft, .nGY2VThumbnailContainer {
    display: none !important;
}
.nGY2ViewerAreaNext > i, .nGY2 .nGY2ViewerAreaPrevious > i {
    background: rgba(0, 0, 0, 0) !important;
}
.nGY2ViewerMedia {
    zoom: 0.85 !important;
}
.nGY2Icon-ngy2_chevron_right3:before {
    background: url("/images/ico_next.svg") no-repeat;
    content: "" !important;
    display: block;
    width: 40px;
    height: 40px;
}
.nGY2Icon-ngy2_chevron_left3:before {
    background: url("/images/ico_prev.svg") no-repeat;
    content: "" !important;
    display: block;
    width: 40px;
    height: 40px;
}

@media only screen and (min-width: 992px) {
    .nGY2ViewerMedia {
        zoom: 0.9 !important;
    }
}
