/*
Theme Name: Oyster Child
Theme URI: https://familie.kuijlaars.net/
Author: Harry Kuijlaars
Author URI: https://familie.kuijlaars.net/
Description: Een modern en responsief thema voor een online fotoalbum of portfolio.
Revision: 3.0
*/

/* =============================================================================
   0. Basis, Animaties & Achtergrond Slider Setup Test
   ============================================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #cccccc;
    background-color: #000000;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- VEGAS SLIDER SETUP --- */
.vegas-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.vegas-slide-inner {
    background-position: center center !important;
}

.vegas-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #bbbbbb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================================================
   1. Hoofd Layout Structuur (Flexbox)
   ============================================================================= */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background-color: rgba(10, 10, 10, 0.7);
    margin: 0;
    width: 100%;
}

.container {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home .entry-title {
    display: none;
}

/* Verberg de standaard sitetitel als er een logo is */
.site-title {
    display: none;
}



/* =============================================================================
   2. Header & Navigatie (Oyster Style)
   ============================================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0; /* AANGEPAST: Compactere padding */
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    animation: fadeIn 1s ease-out forwards;
    flex-shrink: 0;
}

.header-main-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-branding {
    grid-column: 1;
    justify-self: start;
}

.site-branding .site-title a {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.site-branding .custom-logo-link img {
    max-height: 45px;
    width: auto;
}

.main-navigation {
    grid-column: 2;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 18px;
    position: relative;
}

.main-navigation li a {
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.main-navigation li a:hover {
    color: #cccccc;
}

.main-navigation .current-menu-item > a {
    color: #ffffff;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: rgba(15, 15, 15, 0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-top: 2px solid #ffffff;
    min-width: 180px;
    z-index: 99;
    text-align: left;
    left: 0;
    padding: 10px 0;
    border-radius: 4px;
}

.main-navigation li:hover > ul {
    display: block;
}

.main-navigation ul ul li a {
    color: #dddddd;
    text-shadow: none;
}

.main-navigation ul ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* =============================================================================
   3. Content Styling
   ============================================================================= */

.site-main {
    flex-grow: 1;
    padding-top: 120px;
}

body.home .site-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.entry-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-weight: 700;
}

.entry-content {
    color: #cccccc;
}

/* =============================================================================
   3a. Homepage Specifieke Elementen
   ============================================================================= */

.homepage-welcome {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
    text-align: center;
}

.homepage-welcome h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.homepage-welcome p {
    color: #eee;
    font-size: 1.2em;
}

.welcome-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.welcome-button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* =============================================================================
   4. Footer (Transparant)
   ============================================================================= */

.site-footer {
    background-color: transparent;
    color: #a0a0a0;
    font-size: 0.85em;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-info {
    font-size: 0.9em;
    color: #a0a0a0;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    color: #a0a0a0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* =============================================================================
   5. Portfolio Grid Overzicht (Kader Stijl)
   ============================================================================= */

.post-type-archive-portfolio #page {
    background-color: #1a1a1a;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.8em;
    font-family: 'Montserrat', sans-serif;
}

.archive-description {
    font-size: 1.1em;
    color: #cccccc;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.album-grid-item {
    background-color: #f8f9f8;
    box-shadow: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;           /* TOEGEVOEGD */
    flex-direction: column;  /* TOEGEVOEGD */
}

.album-grid-item:hover {
    transform: translateY(-5px);
}

.album-grid-link {
    display: block;
    text-decoration: none;
}

.album-thumbnail {
    width: 100%;
    height: 250px; /* Vaste hoogte voor thumbnails */
    /*aspect-ratio: 1 / 1;
    */overflow: hidden;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


.album-grid-item:hover .album-thumbnail img {
    transform: scale(1.05);
}

.album-info-box {
    position: relative;
    padding: 20px;
    padding-bottom: 45px;
    text-align: left;
    flex-grow: 1; /* TOEGEVOEGD */
}

.album-title-in-grid {
    font-family: 'Lato', sans-serif;
    font-size: 1.3em;
    font-weight: 400;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* NIEUW: Flexbox container voor de onderste rij */
.album-meta-footer {
    display: flex;
    justify-content: space-between; /* Spreid de items uit */
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.album-title-in-grid a {
    color: #333333;
    text-decoration: none;
}

.album-meta-in-grid {
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    color: #8A9A8F;
    font-weight: bold;
}



/* Container voor de tellers aan de rechterkant */
.album-stats {
  display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse; /* TOEGEVOEGD */
}


.photo-count-container {
    display: flex;
    align-items: center;
    color: #777777;
    gap: 5px; /* Ruimte tussen icoon en getal */
}

.photo-count {
    font-size: 0.9em;
    font-weight: bold;
}

.album-like-container {
    display: flex;
    align-items: center;
}


.like-button svg {
  fill: #aaaaaa;      /* AANGEPAST: We vullen nu de omlijning met kleur */
    stroke: none;       /* AANGEPAST: Geen rand meer nodig */
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}


.like-button.liked svg {
    fill: #ff6b6b;      /* AANGEPAST: De vulling wordt rood */
    stroke: none;       /* AANGEPAST: Geen rand nodig */
    pointer-events: none;
}

.like-count {
    margin-left: 8px;
    font-size: 0.9em;
    font-weight: bold;
    color: #777777;
}

.liked-container .like-count {
    color: #333333;
}


/* =============================================================================
   6. Single Album & Post Styling
   ============================================================================= */

.single-portfolio .site-main,
.single-post .site-main {
    padding-top: 0;
    padding-bottom: 0;
}

.album-content-frame {
    background-color: #ffffff;
    color: #333333;
    max-width: 1100px;
    margin: -100px auto 60px auto;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.album-hero-image {
    width: 100%;
    max-height: 65vh;
    overflow: hidden;
}

.album-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-details-kader {
    background-color: transparent;
    padding: 40px 40px 0 40px;
    border-bottom: 1px solid #eeeeee;
    text-align: center;
}

.album-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #111111;
    margin-top: 0;
    margin-bottom: 30px;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: center;
    color: #111111;
}

.meta-item {
    font-size: 1em;
}

.meta-label {
    display: block;
    color: #777777;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    color: #111111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.album-content {
    padding: 40px;
}

.album-content .entry-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #333333;
}

.acf-album-gallery {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
       /* Gebruik de CSS-variabele, met 3 als fallback voor de zekerheid */
    grid-template-columns: repeat(var(--gallery-columns, 5), 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item a:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    font-size: 0.8em;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item a:hover .gallery-item-caption {
    opacity: 1;
}


/* =============================================================================
   7. Algemene Responsiviteit
   ============================================================================= */

@media (max-width: 768px) {
    .site-header {
        position: static;
    }
    
    .site-main {
        padding-top: 40px !important;
    }

    .header-main-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .site-branding {
        justify-self: center;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
}
