/*  
Theme Name: MichalGazdik.sk;
Theme URI: http://
Description: wordpress theme
Author: david muller
Author URI: 
Version: 1.00
*/  

.nunito-sans {
    font-family: "Nunito Sans", sans-serif;
    font-style: normal;
    font-variation-settings:
      "wdth" 100,
      "YTLC" 500;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #ddd;
    padding-top: 80px; /*kvoli headeru */
    width: 100%; 
    height: 500px; 
    background-color: #000;
    background-image: url('images/bg.jpg');
    background-size: auto 85%; 
    background-position: top center; 
    background-repeat: no-repeat;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center; 
}

.w1400 {
    max-width: 1400px;
    width: 100%; 
    margin: 0 auto; 
    position: relative
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    background-color: rgba(0, 0, 0, 0.4); 
    color: white;
    z-index: 1000; 
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); 
    display: flex;
    justify-content: center; 
    align-items: center; 
    font-family: "Nunito Sans", Arial, sans-serif;
    text-transform:uppercase;
    transition: background-color 0.3s ease
}

.header-scrolled {
    background-color: #333;
  }

.header-inner {
    width: 100%;
    padding: 0 1rem; 
    z-index: 1000; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px; 
    
}

/* logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    white-space: nowrap; 
    margin: 0;
    padding: 0;
}

.logo a {
    color: #fff;
    text-decoration: none;
    line-height: 100%;
    vertical-align: middle;
    line-height: 1;
}

/* menu */
.menu {
    display: flex;
    align-items: center; 
    justify-content: flex-end; 
}

.menu ul {
    display: flex;
    list-style: none;
    padding-left: 0;
}

.menu ul li {
    margin-left: 1.9rem;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem; 
    padding: 0.5rem 0.2rem; 
    transition: color 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1280px) {
    .menu ul li a {
        font-size: 1.0rem; 
        padding: 0.5rem 0.1rem;
    } 
    .menu ul li {
        margin-left: 1.0rem; 
    }
    .logo {
        font-size: 1.4rem; 
    }
}

.menu ul li a:hover {
    color: #ff6600;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.menu ul li a.active {
    color: #ff6600;
    transition: color 0.3s ease;
}

/* sekcie */
.section {
    display: block; 
    width: 100%;
    padding: 1rem;
    text-align: center;
    min-height: 300px; 
}

.section h2,
.section h3 {
    display: block; 
    margin: 2rem 2rem; 
    text-align: left;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: left;
    margin: 0 0 2rem 0; 
    padding: 0;
}

/* intro */
.intro {
    color:#ddd;
    padding-top:300px;
    padding-bottom:50px;
    margin-top:0
}
.intro h2 {
    font-size: 3rem;
    font-family: "Nunito Sans", Arial, sans-serif;
    text-align:left;
    margin: 0 0 1rem 0; 
}
.intro p {
    font-size: 2rem;
    max-width: 35%;
}

/* novinky */
.novinky {
    background-color:#222;
    background-color: rgba(34, 34, 34, 0.85);
    padding-bottom: 4rem;
    
}
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    color: #555;
    max-width: 1400px;
    gap:20px;
    margin-bottom: 1.2rem;
}

.news-excerpt {
    flex: 1 1 32%; /* Allows items to grow and shrink, with 30% as the base width */
    max-width: 32%;
    background: #111;
    font-size: 1rem;
    text-align: left;
    overflow: hidden;
    font-family: "Nunito Sans", Arial, sans-serif;
    border-radius: 10px; 
    position: relative;
    padding-bottom: 1.6rem;
}

.news-excerpt img {
    flex: 1;
    background: #000;
    width: 100%; 
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    cursor: pointer;
    transition: transform 0.3s;
    margin:0;

}
.news-excerpt img:hover {
    transform: scale(1.05);
}
.news-excerpt-inside {
    padding: 1.6rem;
    padding-bottom: 2.5rem;
}

.news-excerpt-inside div.datum {
    position:absolute;
    bottom: 1.6rem;
    left: 1.6rem;
}

.news-excerpt h3 {
    margin: 0;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.news-excerpt p {
    margin-bottom: 1rem;
    font-size: 1.0rem;
}

.news-excerpt h3 a {
    color:#ddd;
    text-decoration: none;
}

.news-excerpt h3 a:hover {
    color:#ff6600;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .news-excerpt {
        flex: 1 1 48%; /* Show 2 items per row (slightly less than 40% width) */
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .news-excerpt {
        flex: 1 1 100%; /* Show 1 item per row (full width) */
        max-width: 100%;
    }
}
p#pbd-alp-load-posts a{
    color:#ff6600;
    text-decoration: none;
    font-family: "Nunito Sans", Arial, sans-serif;
}
/* videa */
.videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #aaa;
    padding-bottom:5rem;

}

.videos h2 {
    color: #333;   
}

.video-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.3s;
    overflow: hidden;
}

.video-wrapper h3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: #ddd; /* White text */
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 1; /* Make sure the h3 is above other content */
}

.video-thumbnail {
    width: 350px;
}

.video-wrapper:hover {
    transform: scale(1.05);
}

.video-wrapper:hover h3 {

}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"%3E%3Cpath d="M8 5v14l11-7z" fill="white" /%3E%3C/svg%3E');
    background-size: 30px 30px; /* Adjust size as needed */
    background-repeat: no-repeat;
    background-position: center;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index:2000;
}

.video-container {
    width: 80vw;
    height: calc(80vw * 9 / 16);
    max-height: 80vh;
    max-width: calc(80vh * 16 / 9);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-close-btn {
    color: #fff;
    font-size: 50px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 2001;
}

/* biografia */
.bio {
    background-color: #111; 
    overflow: hidden; 
}

.bio-outer {
    background-color: #111;
    display: block; 
    display: flex; 
    align-items: flex-start; 
}

.bio-outer img {
    width: 100%; 
    max-width: 300px; 
    object-fit: cover; 
    margin: 2rem;
    border: 8px solid #333;
}

.bio-outer p {
    margin: 0 0 2rem 0; 
}

.bio-outer .bio-text {
    margin: 2rem;
    flex: 1; 
}

@media (max-width: 768px) {
    .bio-outer {
        display: block; 
    }

    .bio-outer img {
        width: 80%; 
    }
}

/* kontakt */
.kontakt {
    background-color: #222;
    min-height: 400px;
    font-size:1.8rem;
}

.kontakt a {
    color:#ff6600;
    text-decoration: none;
}

.kontakt p {
    font-size:1.4rem;
    text-align: center;
    line-height: 1.8em;
    margin-top: 1rem;
}

/* footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #333;
    color: white;
    clear: both;
}

/* Mobile View */
@media (max-width: 1024px) {
    /* mensi header na mensom zariadeni */
    body {
        padding-top: 50px; 
    }

    header {   
        height: 50px; /* Ensure header height is 80px */
        }

    .menu {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: auto;
        background-color: rgba(27, 27, 27, 0.99);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        z-index: 1001;
        overflow-y: auto;
        padding-bottom:10px;
        
    }

    .menu.show {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid #777;
        width: 100%;
    }

    .menu ul li {
        margin: 1rem 0;
    }

    .menu ul li a {
        font-size: 1.2rem; 
    }

    .hamburger, .close-icon {
        width: 30px;  
        height: 30px;
        display: flex;
        font-size: 2rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 20px;
        cursor: pointer;
        transition: all 0.3s ease; 
    }
    
    .hamburger {
        display: block; 
    }
    
    .close-icon {
        display: none; 
    }

    .section h2 {
        font-size: 2rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }

    .section p {
        font-size: 1.1rem;
    }
    .intro p {
        font-size: 1.4rem;
    }
}

/* ked je screen vacsi, tak hamburger nechceme */
@media (min-width: 1024px) {
    .hamburger, .close-icon {
      display: none;
    }
  }

/* social media ikonky */
.social-icons {
    display: none;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 100%;
    height: auto;
    filter: invert(1); /* nech su ikonky biele a nie cierne */
}

.menu.show .social-icons {
    display: flex;
    justify-content: center;
}

.social-footer .social-icons {
    gap:20px;
    display: flex;
    padding-top: 80px;
    padding-bottom: 30px;
    width: 100%;
    background:#222
}    

/* Go To Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width:50px;
    height: 50px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: none; 
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 100;
    opacity: 0.6;
}

.back-to-top img {
    width: 80%;
    height: auto;
    filter: invert(1);
    
}
.back-to-top:hover {
    background-color: #555;
    transform: scale(1.1);
    opacity: 1.0;
}

/* galeria */
.gallery-container { 
    display: grid; 
    gap: 10px; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* auto adjust columns */
    grid-auto-rows: minmax(200px, auto); /* Allow rows to size dynamically */
    justify-content: center; /* Center items */
    align-items: start; 
    max-width: 100%;
    margin: auto;
    padding: 20px;
    padding-bottom: 5rem;
    height: auto; 
}

.gallery-image {
    width: 100%; 
    min-width: 200px; 
    aspect-ratio: 4 / 4; 
    object-fit: cover; 
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.02);
}


/* modal galerie */
.modal {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    touch-action: none; 
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    /*touch-action: none;  Prevents default touch actions like zooming on image */
    user-select: none; /* Disable text selection */
    /* -webkit-user-drag: none; /* Disable image dragging */
    z-index: 2001;
  }
  
  .close {
    color: #fff;
    font-size: 50px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 2001;
  }
  
  .prev, .next {
    color: #fff;
    font-size: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px;
    z-index: 2002;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }

  .clearfix {
    clear: both;
}

/* diskografia */
.albums {
    display: grid; 
    gap: 20px;
    grid-template-columns: repeat(3, 1fr); /* Explicitly set 3 columns for large screens */
    justify-content: center; /* Center the items horizontally */
    align-items: start; /* Align to the top */
    max-width: 100%;
    margin: auto;
    padding-top:20px;
    padding-bottom:4rem;
    height: auto; 
}

.album {
    background-color: #111;
    padding-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ccc;
    position: relative; /* Prevent overlap */
    width: 100%; 
    padding-bottom: 60px;
    height: 100%;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.album-inner {
    display: flex;
    padding: 20px;
    justify-content: flex-start; 
    align-items: flex-start; 
    width: 100%;
  
}

.albums h3 {
    font-size: 1.2rem;
    padding: 1rem;
    margin: 0;
    margin-bottom: 10px;
    background-color: #222;
    border-radius: 10px 10px 0 0;
    text-align: left;
    display: block;
    color:#b4b4b4
}

.album img {
    width: 40%; 
    margin-right: 20px; 
    margin-bottom: 20px; 
}

.album img.album-temp {
    width: 40%; 
    margin-right: 20px; 
    margin-bottom: 20px; 
    opacity: 0.5;
}

.album ol {
    list-style: decimal;
    padding-left: 2.4rem;
    text-align: left;
    flex-grow: 1; 
    width: 60%; 
}

.album-button {
    margin-top: 20px;
    background-color: rgba(29, 185, 84, 0.9);
    padding: 10px;
    border-radius: 5px;
    width: 100px; 
    height: 40px; 
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-image: url('images/icons/spotify white.svg');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; 
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.album-button-yt {
    margin-top: 20px;
    background-color: rgba(112, 32, 32, 0.9);
    padding: 10px;
    border-radius: 5px;
    width: 100px; 
    height: 40px; 
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 140px;
    background-image: url('images/icons/yt white.svg');
    background-size: 90px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; 
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer
}

.album-button:hover {
    background-color: #1ed760;
}

.album-button-yt:hover {
    background-color: #9f2e2e;
}

@media (max-width: 1280px) {
    .albums {
        grid-template-columns: repeat(2, 2fr); /* 3 albums per row */
    }

    .album img {
        width: 40%
    }

    .album ol {
        width: 60%
    }

}

@media (max-width: 768px) {
    .albums {
        grid-template-columns: 1fr; /* 1 album per row on smaller screens */
    }

    .album img {
        width: 40%
    }

    .album ol {
        width: 60%
    }

    /* tuning ako je zobrazene pozadie webu na mobiloch */
    body {
        background-image: url('images/bg.jpg');
        background-size: auto 70%;
        background-position: top center; 
        background-repeat: no-repeat; 
    }   
}

/*** koncerty **/
.koncerty-outer {
    display: flex;
    justify-content: center; 
}

.koncerty {
    list-style: none;
    padding: 20px 0 100px 0;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 1.2rem;
    width: 80%; 
    max-width: 1200px;
}

.koncerty li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    color:#999
}

.koncerty li.upcoming {
    color:#ccc;
}

.koncerty li div {
    padding: 10px 10px;
}

.k-date {
    flex: 1;
    font-weight: bold;
    text-align: left;
}

.k-venue {
    flex: 2;
    text-align: left;
}

.k-city {
    flex: 1;
    font-weight: bold;
    text-align: left;
}

.k-note {
    flex: 1.2;
    text-align: left;
}

@media (max-width: 768px) {
    .koncerty {
        font-size: 0.8rem;
        width: 100%; 
    }  
}




/* single clanok/novinka */

article {
    width: 100%;
    padding: 1rem;
    background-color:#222;
    background-color: rgba(34, 34, 34, 0.85);
    padding-bottom: 5rem;
}

.article h2 {
    font-size: 2.5rem;
    margin: 2rem 2rem;
    margin-bottom: 1rem;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.novinka {
    margin: 0 auto;
    border-radius: 15px;
    background-color: #111;
    padding: 8rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.novinka a {
    color: #ff6600;
    text-decoration: none;
}

.novinka a:hover {
    color: #f39c12;
    text-decoration: none;
}

article .gallery-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

article .gallery-item img {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    padding: 0;
}

article .datum {
    text-align: left;
    color: #555;
    font-size: 1rem;
    padding: 1rem;
    padding-left: 0;
}

.novinka-text h2 {
    font-family: "Nunito Sans", Arial, sans-serif;
    color: #ddd;
    font-size: 2.4rem;
    text-align: left;
    margin: 0;

}

.novinka-text {
    padding: 4rem;
    padding-top: 10px;
    color: #bbb;
    font-size: 1em;
    text-align: left;
    font-size: 1.2rem;
}


.article-images { 
    display: grid; 
    gap: 10px; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto adjust columns */
    grid-auto-rows: minmax(200px, auto); /* Allow rows to size dynamically */
    justify-content: center; /* Centers the grid itself */
    align-items: center; 
    max-width: 100%;
    margin: auto;
    padding: 20px;
    padding-bottom: 5rem;
    height: auto; 
}

.article-images img {
    display: block;
    margin: auto; /* Centers the image inside its grid cell */
    width: 100%; /* Makes it responsive */
    max-width: 500px; /* Ensures a single image doesn't stretch too much */
    height: auto; /* Maintains aspect ratio */
    object-fit: cover; 
    cursor: pointer;
    transition: transform 0.3s;
    justify-self: center; /* Centers images inside their grid cells */
    align-self: center;
}



.novinka-text p {
    padding-bottom: 2rem;
}

.novinka-text ol, .novinka-text ul {
    margin: 0;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.novinka-text li {
    margin: 0;
    padding: 0;
}

.share-button {
    padding: 2rem;
}

.upnext {
    padding-top: 2rem;
    padding-bottom: 1rem;
    color:#999;
    font-size: 1rem;
    font-family: "Nunito Sans", Arial, sans-serif;
}

.starsia-novsia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-items: flex-start; /* or center if you want text vertically aligned */
}

.novsia-novinka, .starsia-novinka {
    font-size: 1.2rem;
    font-family: "Nunito Sans", Arial, sans-serif;
    width: 50%;
}

.starsia-novinka {
    text-align: right;
}

.starsia-novsia a {
    color: #999;
    border-top: 2px solid #999;
    width: 100%;
    height: 100%;
    display: block;
    padding: 1rem 0 0 0;
    text-decoration: none;
}

.starsia-novsia a:hover {
    color: #ff6600;
    border-top: 2px solid #ff6600;
}

.go-back {
    position: absolute;
    top: 0px; 
    left: 10px;
    font-size: 2rem; 
    text-decoration: none;
    color: #ccc; 
}

.go-back:hover {
    color: #ff6600;
}


@media (max-width: 1280px) {
    .novinka-text {
        padding: 2rem;
    }
    .novinka {
        margin: 0 auto;
        border-radius: 15px;
        background-color: #111;
        padding: 3rem;
    }
    .novsia-novinka, .starsia-novinka {
        font-size: 1.0em;
    }
    .starsia-novsia a {
        border-top: 2px solid;
    }
    .starsia-novsia a:hover {
        border-top: 2px solid;
    }
    .novinka-text h2 {
        font-size: 2.0rem;
    
    }
}
@media (max-width: 768px) {
    .novinka-text {
        padding: 0;
    }
    .novinka {
        margin: 0 auto;
        padding: 2rem;
    }
    .novsia-novinka, .starsia-novinka {
        font-size: 0.8em;
    }
    .starsia-novsia a {
        border-top: 1px solid;
    }
    .starsia-novsia a:hover {
        border-top: 1px solid;
    }
    .novinka-text h2 {
        font-size: 1.6rem;
    }
}

/*  404 */
.p404 {
    min-height: 500px;
    background-color: rgba(34, 34, 34, 0.85);
    padding-bottom: 5rem;
    text-align: center;
}
.p404 a {
    color: #ff6600;
    text-decoration: none;
}

.p404 a:hover {
    color: #f39c12;
    text-decoration: none;
}

.p404 p {
    text-align: center;
}

.p404 h2 {
    font-size: 2.5rem;
    margin: 2rem 2rem;
    margin-bottom: 1rem;
    font-family: "Nunito Sans", Arial, sans-serif;
}