/*
 * Visuals
 * Dr Gurvan M. F. Bazin
 */

body {
    --stamp-transparent-color: transparent;
    --stamp-backgd-color: rgba(188, 189, 189, 0.8);
}

.container-webcategory {
    height: 6rem;
}

.webcategory-rectangle {
    border-style: solid;
    border-color: gray !important;
    background-color: transparent;
    border-width: 1px 1px 1px 1px;
}

/* .container-background { */
/*     padding-bottom: 4rem; */
/*     background-image: url("https://cdn.eso.org/images/banner1920/eso1716c.jpg"); */
/*     opacity: 0.7; */
/*     background-position: center; */
/*     background-size: cover; */
/* } */

.container-background {
    position: relative;
    padding-bottom: 4rem;
}
.container-background:after {
    display: block;
    position: absolute;
    content: ' ';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* z-index: 1; */
    background-image: url("https://cdn.eso.org/images/banner1920/eso1716c.jpg");
    opacity: 0.7;
    background-position: center;
    background-size: cover;
}

.webcategory-active, .webcategory-active:hover {
    color: #FF8C00;
}

.video-play-arrow {
    position: absolute;
    top: 30%;
    left: 40%;
    color: rgba(255, 255, 255, 0.6);
}

.podcast-thumb {
    padding: 2rem !important;
}

.podcast-title {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
}

.podcast-text {
    color: black;
    padding-top: 0rem !important;
    padding-bottom: 1rem !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
}

.news-title {
    color: black;
    padding-top: 0rem !important;
    padding-bottom: 1rem !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
    padding-top: 1rem !important;
}

.news-text {
    color: black;
    padding-top: 0rem !important;
    padding-bottom: 1rem !important;
    padding-right: 2rem !important;
    padding-left: 2rem !important;
    font-weight: 600;
}

.podcast-watch {
    color: rgb(215, 65, 45);
}

.visuals-blog-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 40vw;
}

.visuals-blog-img {
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

@media (min-width: 1185px) {
    .visuals-blog-img-container {
        height: 20vw;
    }
}

.img-carousel {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carouselMediaItem {
    margin-top: auto;
    margin-bottom: auto;
}

.carouselVideoItem {
    margin-top: auto;
    margin-bottom: auto;
}

.carousel-spinner {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 80vh;
}

.carousel-spinner div {
  transform-origin: 40px 40px;
  animation: carousel-spinner 1.2s linear infinite;
}

.carousel-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #fff;
}

.carousel-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.carousel-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.carousel-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.carousel-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.carousel-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.carousel-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.carousel-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.carousel-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.carousel-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.carousel-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.carousel-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.carousel-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

@keyframes carousel-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.stories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.story-container {
    min-height: 250px;
    transform: scale(1) translateY(0);
    transition: all 250ms ease-in;
    overflow: hidden;
}

.story-container:hover {
    transform: translateY(-7px);
}

.story-container:hover .story-img {
    transform: scale(1.075);
}

.story-img-container {
    overflow: hidden;
    position: relative;
}

.story-category-stamp {
    position: absolute;
    top: 0;
    right: 0;
    height: 30px;
}

.story-container > a {
    text-decoration: none;
}

.story-container > a:hover {
    text-decoration: none;
}

.story-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: scale(1);
    transition: all 250ms ease-in;
}

.story-description {
    padding: 8px;
}

.story-description:hover {
    color: #fff;
    background-color: rgba(0, 119, 192, 0.8);
}

.story-description > .date {
    color: #0081c9;
}

.story-description:hover > .date {
    color: #fff;
}

.story-description > .title {
    color: #333333;
}

.story-description:hover > .title {
    color: #fff;
}

.story-more-container {
    position: relative;
    outline-offset: -2rem;
    cursor: pointer;
    height: 195px;
}

.story-more {
    font-size: 2.5rem;
    font-weight: bold;;
    color: rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width: 990px) {

    .stories-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-img {
        max-height: 25vw;
    }

    .story-container {
        min-height: 200px;
    }

    .story-more-container {
        height: 30vw;
    }

    .slogans-container {
        margin-top: 4rem;
    }

}

.story-categories {
    text-align: right;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: end;
    align-items: end;
    flex-wrap: wrap;
}

.story-category {
    font-size: 1.5rem;
    color: black;
    padding: 0 8px 0 36px;
    margin-inline: 0.2rem;
    margin-block: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(45deg, var(--stamp-transparent-color) 26px, var(--stamp-backgd-color) 26px);
    transition: all 250ms ease-in;
}

@media screen and (max-width: 1350px) {

    .story-category {
        font-size: 1.25rem;
    }

}

@media screen and (max-width: 750px) {

    .stories-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .story-category {
        font-size: 1rem;
        margin-inline: 0.1rem;
    }

    .story-description {
        font-size: 0.8rem;
    }

}

.story-category:hover {
    color: white;
    --stamp-backgd-color: rgba(0, 119, 192, 0.8);
}

.story-selected-category {
    --stamp-backgd-color: rgba(0, 119, 192, 0.8);
    color: white;
    /* border-color: rgb(0, 119, 190); */
}

.section-title-nolink {
    padding: 4px 8px 4px 32px;
    color: #fff;
    background: linear-gradient(45deg, var(--stamp-transparent-color) 22px, var(--stamp-backgd-color) 22px);
    cursor: pointer;
    transition: all 250ms ease-in;
}

.story-container:hover .section-title-nolink {
    --stamp-backgd-color: rgba(0, 119, 192, 0.8);
}

@media screen and (max-width: 950px) {

    .title-categories {
        grid-template-columns: 1fr;
    }

}

