/**
 * 2007-2023 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author    WOW ! Presta <info@wow-presta.com>
 *  @copyright 2023 WOW ! Presta
 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *  International Registered Trademark & Property of WOW ! Presta
 */
.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.media-item {
    width: 200px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: scale(1.05);
}

.media-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Popup Styles */
.media-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.media-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    max-width: 90%;  /* Increase the width */
    max-height: 90vh; /* Allow more height */
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-content iframe{
    width: 700px;
    height: 500px;
    border-radius: 8px;
}
.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff5a5a;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.close-popup:hover {
    background: #e04a4a;
}


.see-all-media {
    margin-top: 25px;
    text-align: center;
        margin-bottom: 30px;
}

.see-all-button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.see-all-button:hover {
    background-color: #0056b3;
}

.featured_media_title{
    font-size: 24px;
    color: black;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 23px;
    margin-top: 10px;
}
@media only screen and (max-width: 768px) {
  .popup-content iframe{
        max-width: 100%;
        max-height: 80vh;
        border-radius: 8px;
    }
}