/* 
    Default element styles
 */

 :root {

  --thumbnail-width: 800px;
  --thumbnail-height: 450px;

  @media (max-width: 768px) {
    --thumbnail-width: 512px;
    --thumbnail-height: 288px;
  }

  @media (max-width: 480px) {
    --thumbnail-width: 256px;
    --thumbnail-height: 144px;
  }

}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff00;
    color: #333;
    line-height: 1.6;
}

h1 { font-weight: 800;
    @media (max-width: 768px) {
        font-size: 1.2rem;
    }
    @media (max-width: 480px) {
        font-size: 1.1rem;
    }
}

h2 { font-weight: 500;
    @media (max-width: 768px) {
        font-size: 1.1rem;
    }
    @media (max-width: 480px) {
        font-size: 1.0rem;
    }
}

h4 { 
    font-weight: 400; 
    @media (max-width: 768px) {
        font-size: 1.0rem;
    }
    @media (max-width: 480px) {
        font-size: 0.9rem;
    }
}

img {
    width: var(--thumbnail-width);
    height: var(--thumbnail-height);
    object-fit: cover;
}


.livestream-video {
  width: var(--thumbnail-width);
  height: var(--thumbnail-height);
  object-fit: cover;
  margin: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;

  iframe {
    width: var(--thumbnail-width);
    height: var(--thumbnail-height);
    border: none;
    border-radius: 8px;
  }
}

.font{
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
}
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.series-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.series-page h1 {
  text-align: center;
  width: 100%;
}

.grid-gallery{
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    align-items: stretch;
    gap: 16px;
    padding: 8px;
    > * { 
        padding: 8px;
        /* width: 320px; height: 180px;  */
        /* flex-shrink: 0; */
        /* width: 100%; */
        /* height: auto; */
        flex-shrink: 0;
        width: var(--thumbnail-width);
        height: var(--thumbnail-height);
    }
}

#sermons-container.grid-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  width: 100%;
}

.scroll-gallery{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    transition: all 0.3s ease;
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
    gap: 16px;
    padding: 8px;
    > * { 
        /* width: 320px; height: 180px;  */
        flex-shrink: 0;
    } 
}

.scroll-gallery:hover{
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}


.stacked {
    display: grid;
    > * {
        grid-area: 1 / 1;
    }
}

.transparent-overlay {
    background-color: rgba(0,0,0, 0.45);
    overflow: hidden;
}

.overlay-title {
    color: rgb(255, 255, 255);
    margin: auto;  /* center inside container */
}



#video-thumbnail{
/* .thumbnail-container{ */
    /* height: 100px; width: 200px; */
    /* margin: 20px; */
    height: 100%; width: 100%;
    overflow: hidden;
    border-radius: 4px;
   
    outline: 1px solid rgba(0, 0, 0, 0);
    transition: all 0.2s ease;
     > * { transition: all 0.2s ease; }
    .transparent-overlay{  opacity: 0; }
    .overlay-title{   opacity: 0;  }

}

#video-thumbnail:hover{
/* .thumbnail-container:hover{ */
    transform: translateY(-0.1px) scale(1.01);
    outline: 1px solid rgba(0, 0, 0, 0.5);

    .transparent-overlay{  opacity: 1; }
    .overlay-title{   opacity: 1; }
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* .thumbnail-container{ */
    /* height: 100px; width: 200px; */
    /* border-radius:  16px; */
    /* margin: 100px; */
/* } */


.video-container{  
  padding: 8px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnail-content{
    width: var(--thumbnail-width);
    /* height: calc(var(--thumbnail-height) * 1.2); */
    /* margin: 8px; */
    /* padding: 8px; */
}
.thumbnail-info{
    padding: 8px;
    /* background: red; */
}
.thumbnail-title{
    /* font-weight: 600; */
    /* font-size: 1rem; */
    margin: 0;
    /* width: 320px; */
    color: #515151;
    overflow: hidden;
    text-overflow: ellipsis;
    /* padding: 8px; */
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    z-index: 2;
    position: relative;

}


/* #breadcrumb {
  color: gray;
  font-size: 18px;
} */

a {
  color: gray;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
#breadcrumb {
  margin: 16px;
  font-size: 14px;
}
#breadcrumb a {
  color: gray;
  text-decoration: none;
}

#return-button {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #1c1c1c 0%, #000000 100%);
  border: none;
  color: #eeeeee;
  /* padding: 6px 42px; */
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  gap: 8px;
}
#return-button .material-icons {
  font-size: 16px;  
}
#return-button:hover {
    background: linear-gradient(90deg, #434343 0%, #3c3c3c 100%);
    color: #ffffff;
    transform: translateY(-0.1px) scale(1.001);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
}

.return {
   padding-bottom: 16px;
   width: 100%;
}

.responsive-video {
    position: relative;

    /* 16:9 aspect ratio */
    padding-bottom: 56.25%; 

    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.responsive-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: 0;
}

.sermon-page{
    /* max-width: var(--thumbnail-width); */
    margin: auto;
    padding-bottom: 32px;
}

.sermon-description {
    margin-top: 32px;
    padding: 16px 0 0 0;
}

/* #main{
  background: #2a2a2a;
  border-radius: 8px;
  padding: 16px;
  color: #ffffff;
  > * {
       color: #ffffff;
    }
} */

.outside{
    max-width:  1200px;
    margin: auto;
    padding: 16px;
}