/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.site-main {
    flex: 1;
    overflow: hidden;
}

.site-main .container {
    width: 100%;
    padding: 0;
    max-width: none;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    /*margin-top: 2rem;*/
}

/* Common Grid Item Styles */
.grid-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 770/1089;
    cursor: pointer;
}

/* Base Image Styles */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.grid-item img.primary {
    opacity: 1;
}

.grid-item img.secondary {
    opacity: 0;
}

/* Homepage Grid Styles */
.home .grid-item,
.post-type-archive-newsitem .grid-item {
    position: relative;
}

.home .grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;

}

.home .grid-item::before,
.post-type-archive-newsitem .grid-item::before {
    content: attr(data-title-first) "\A" attr(data-title-rest);
    white-space: pre;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 4rem);
    color: var(--header-red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Geologica', sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    letter-spacing: 0.05em;
}

.home .grid-item:hover::before,
.post-type-archive-newsitem .grid-item:hover::before {

    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.home .grid-item:hover::after,
.post-type-archive-newsitem .grid-item:hover::after {
    opacity: 1;
}

/* Ana sayfada görsel değişimi yok */

/* Men Page Grid Styles */
.category .grid-item,
.search .grid-item {
    position: relative;
}

.category .grid-item a,
.search .grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.category .grid-item a::after,
.search .grid-item a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.category .grid-item a::before,
.search .grid-item a::before {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 4rem);
    color: var(--header-red);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Geologica', sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 3;
    letter-spacing: 0.05em;
}

.category .grid-item,
.search .grid-item {
    transition: all 0.5s ease;
}

.category .grid-item a:hover::before,
.search .grid-item a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.category .grid-item a:hover::after,
.search .grid-item a:hover::after {
    opacity: 1;
}

.category .grid-item:hover img.primary,
.search .grid-item:hover img.primary {
    opacity: 0;
}

.category .grid-item:hover img.secondary,
.search .grid-item:hover img.secondary {
    opacity: 1;
    transform: scale(1.02);
}

/* Footer Styles */
.site-footer {
    background: #fff;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.site-footer nav {
    margin-bottom: 2rem;
}

.site-footer nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.975rem;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.site-footer nav a svg {
    width: 17px;
    width: auto;
    display: block;
}

.site-footer nav a img {
    height: 14px;
    width: auto;
    display: block;
}

.site-footer p {
    margin-bottom: 1.2rem;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
}

.site-footer p img {
    width: 235px;
}

.site-footer small {
    color: #666;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
}

.no-results.not-found {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
}
.no-results.not-found .page-content {
    margin-top: 2rem;
}
.no-results.not-found .page-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #000000;
    font-weight: 300;
    margin-bottom: 1rem;
}
/* Tablet View */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        display: flex;
        flex-direction: row;
        gap: 2.2rem;
    }

    .site-footer nav a {
        margin: 0;
    }
}

/* Single Model */
body.single-model {
    margin: 0;
    min-height: 100vh;
    font-family: "Geologica";
}

.site-main.single-model {
    height: 100vh;
    overflow: hidden;
}

.model-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* Sol Panel - Görsel */
.profile-left {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.profile-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Sağ Panel - İçerik */
.profile-right {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
    text-align: center;
    position: relative;
}

/* Üst Menü */
.top-menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.top-menu a {
    text-decoration: none;
    color: #000000;
    text-transform: uppercase;
    font-family: "Geologica";
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
}

a.pdf {
    text-decoration: none;
    color: #000000;
    text-transform: uppercase;
    font-family: "Geologica";
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Model Bilgileri */
.model-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 40px;
    margin: 43% 0;
}

.model-name {
    font-size: 48px;
    margin-bottom: 24px;
    color: #c80910;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Ölçüler */
.measurements {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    letter-spacing: 0.5px;
    word-spacing: 6px;
    text-align: center;
}

.measurements-row {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.measurements-row span strong {
    font-weight: 400;
    margin-left: -5px;
}

.measurements-row:last-child {
    margin-bottom: 0;
}

.measurements strong {
    font-weight: 400;
    color: #000;
    font-size: 17px;
}

/* Sosyal Metrikler */
.social-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
    position: absolute;
    top: 80%;
    left: 0;
    right: 0;
}

.social-link {
    text-decoration: none;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 400;
}

.social-link svg {
    fill: currentColor;
}

.social-link.models {
    font-family: serif;
    letter-spacing: -0.5px;
}

.instagram-icon {
    margin-top: 2px;
}

.tiktok-icon {
    margin-top: 1px;
}

/* Responsive Tasarım */
/* Portfolio Section */
.portfolio-section {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    /* padding: 1px; */
    /* can kapattı */
    padding: 0px;
    position: relative;
    z-index: 1;
}

.portfolio-gridCan {
    display: none;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(2, 1fr); */
    /* grid-auto-rows: minmax(500px, auto); */
    background: #fff;
    /* height: auto; */
}
.portfolio-gridCan.active {
    display: flex;
    flex-wrap: wrap;
}
.portfolio-itemCan {
    width: 50%;
	padding: 0;
	margin: 0;
    position: relative;
	display: flex;
}
.portfolio-itemCan img {
    width: 100%;
	aspect-ratio: 770 / 1089;
	margin: 0px;
	padding: 0px;
    /* position: absolute; */
    /* height: auto;
    padding: 0;
    margin: 0; */
    /* aspect-ratio: 770/1089; */
}
.portfolio-itemCan.horizontal {
    width: 100%;
    /* grid-column: span 2;
    /* can kapattı */
    /* min-height: 60vh; */
    aspect-ratio: 1089/770;
}
.portfolio-itemCan.horizontal img {
    width: 100%;
	aspect-ratio: 1089 / 770;
	margin: 0px;
	padding: 0px;
    /* position: absolute; */
    /* height: auto;
    padding: 0;
    margin: 0; */
    /* aspect-ratio: 770/1089; */
}
.portfolio-itemCan img.playbutton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.portfolio-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    /* grid-auto-rows: minmax(500px, auto); */
    background: #fff;
    height: auto;
}

.portfolio-grid.active {
    display: grid;
}

.top-menu a.active {
    border-bottom: 1px solid #000;
}

.portfolio-item {
    /* overflow: hidden; */
    position: relative;
    /* min-height: 100vh; */
    aspect-ratio: 770/1089;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* position: absolute; */
    top: 0;
    left: 0;
    aspect-ratio: 770/1089;
}

.portfolio-item.horizontal {
    grid-column: span 2;
    /* can kapattı */
    /* min-height: 60vh; */
    aspect-ratio: 1089/770;
}

.portfolio-item.horizontal img {
    width: 100%;
    height: 100%;
    /* object-fit: cover;
    position: absolute; */
    top: 0;
    left: 0;
}

/* ===== Sticky INFO (üst) ===== */
.sticky-profile-header {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--top-offset, 72px);
    z-index: 1000;
    background: #f3f3f3;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    font-family: "Geologica", sans-serif;
}

.sticky-profile-header.is-visible {
    transform: translateY(0);
    display: none;
}

.sticky-profile-header .info-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 15px 16px;
    flex-wrap: wrap;
}

.sticky-profile-header .sticky-name {
    color: #c80910;
    font-size: 35px;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
}

.sticky-profile-header .sticky-measurements {
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 300;
    text-transform: uppercase;
    color: #c80910;
    white-space: nowrap;
}

.sticky-profile-header .sticky-measurements strong {
    font-weight: 500;
    margin-left: -3px;
    color: black;
    padding: 3px;
    margin-right: 10px;
}

/* ===== Sticky MENU (altta, ayrı ve beyaz) ===== */
.sticky-profile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--top-offset, 72px) + var(--sticky-info-height, 0px));
    z-index: 999;
    /* info header'ın hemen altında */
    background: #fff;
    /* İSTEDİĞİN: beyaz zemin */
    border-bottom: 1px solid #e9e9e9;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
}

.sticky-profile-menu.is-visible {
    transform: translateY(0);
    display: none;
}

.sticky-profile-menu .container {
    display: flex;
    gap: 28px;
    justify-content: center;
    padding: 20px 16px;
}

.sticky-profile-menu a {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
}

.sticky-profile-menu a.active {
    border-bottom: 1px solid #000;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-no-pointer {
    cursor: default;
}

#vidBox {
    top: 100px !important;
}

.page-numbers {
    display: none;
}

.prev.page-numbers,
.next.page-numbers {
    display: block;
    /* position: absolute; */
    font-size: 16px;
    color: #656565;
    text-decoration: none;
}

a.prev.page-numbers:hover,
a.next.page-numbers:hover {
    color: #c80910;
}

a.next.page-numbers {
    padding-left: 20px;
}

.next.page-numbers {
    padding-right: 20px;
}


.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.map-iframe {
    width: 100%;
    height: 450px;
    position: relative;
}

.SearchResultTitle {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin: 1rem !important;
}

/* .wpcf7-drag-n-drop-file.d-none {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
}

div.wpcf7 input[type="file"] {
    cursor: pointer;
} */

/* Küçük ekran uyumu */
@media (max-width: 768px) {
    .sticky-profile-header .sticky-measurements {
        display: none;
    }

    .sticky-profile-header .sticky-name {
        font-size: 20px;
    }
}

/* Motion azaltma */
@media (prefers-reduced-motion: reduce) {

    .sticky-profile-header,
    .sticky-profile-menu {
        transition: none;
    }
}

@media (max-width: 768px) {
    .site-main.single-model {
        height: auto;
        overflow: visible;
    }

    .model-profile {
        grid-template-columns: 1fr;
        height: auto;
    }

    .profile-left {
        height: 70vh;
    }

    .profile-right {
        padding: 40px 20px;
    }

    .model-info {
        padding: 0 20px;
    }

    .measurements {
        margin: 20px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr);
        /* grid-auto-rows: minmax(500px, auto); */
    }

    .portfolio-itemCan {
        width: 100%;
    }
}