/* SINGLE WEB STORY WORK */
amp-story-page {
    background-color: #eee;
}

amp-story-page * {
    color: black;
    text-align: center;
}

[template="thirds"] {
    padding: 0;
}

amp-story-page .box {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    padding: 30px;
    font-size: 14px;
    line-height: 20px;
    background-image: linear-gradient(
        0.5turn,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}
amp-story-page .box * {
    color: white;
}

amp-story-page .box .logo {
    width: auto;
    height: 37px;
    padding: 5px 9px;
    background-color: white;
    border-radius: 5px;
    position: absolute;
    top: 16px;
    left: 15px;
}
amp-story-page .box h1,
amp-story-page .box h2 {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 500;
}

amp-story-page .box p {
    font-size: 16px;
    line-height: 22px;
    margin: 0px;
}

amp-story-page .box .btn {
    background-color: white;
    border-radius: 50px;
    color: black;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 20px;
    margin-top: 25px;
    display: inline-block;
}
/* SINGLE WEB STORY WORK END */

/* ALL WEB STORIES WORK START */
.web-stories {
    padding: 40px 0px;
    background-color: white;
}
.web-stories .webstory-h {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
}
.web-stories .webstory-list {
    margin: 0px;
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}
.web-stories .webstory-list li {
    list-style: none;
}
.web-stories .webstory-list li a {
    display: block;
}
.web-stories .box {
    position: relative;
    width: 100%;
    height: 320px;
    padding: 15px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.web-stories .box * {
    color: white;
    z-index: 1;
}

.web-stories .box:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-image: linear-gradient(
        0.5turn,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.web-stories .box .icon {
    width: 29px;
    height: 26px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.web-stories .box h4 {
    font-size: 17px;
    margin-bottom: 10px;
}

.web-stories .box .date-logo {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
}

.web-stories .box .date-logo p {
    margin: 0px;
    font-size: 12px;
    font-weight: 500;
}

.web-stories .box .date-logo .logo {
    width: 84px;
    height: 27px;
    object-fit: contain;
    padding: 3px 5px;
    background-color: white;
    border-radius: 5px;
    margin-right: 0px;
}
/* ALL WEB STORIES WORK END */

@media (max-width: 1200px) {
    .web-stories .webstory-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}
@media (max-width: 992px) {
    .web-stories .webstory-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
@media (max-width: 768px) {
    .web-stories {
        padding: 20px 0px;
    }
    .web-stories .webstory-h {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .web-stories .webstory-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .web-stories .box {
        height: 220px;
    }
    .web-stories .box .date-logo {
        display: block;
    }
    .web-stories .box h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    .web-stories .box .date-logo p {
        margin-bottom: 5px;
    }
    .web-stories .box:before {
        background-image: linear-gradient(
            0.5turn,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

.close-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    color: white;
    font-size: 20px;
    z-index: 111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s 0s linear;
}

.close-btn:hover {
    color: #999 !important;
}
