/* my-custom-video-gallery/assets/css/style.css */

.mcvg-gallery-wrapper {
    display: grid;
    gap: 20px; /* Space between items */
    margin-bottom: 30px;
}

.mcvg-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Add more column classes if needed (e.g., .mcvg-col-2, .mcvg-col-4) */
.mcvg-col-2 {
    grid-template-columns: repeat(2, 1fr);
}
.mcvg-col-4 {
    grid-template-columns: repeat(4, 1fr);
}


.mcvg-gallery-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* Removed flex properties that were for the button layout */
}

.mcvg-gallery-item a {
    text-decoration: none;
    color: #333;
    display: block;
    /* Removed flex-grow here as it's not needed without the button below */
}

.mcvg-thumbnail-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 0; /* Remove extra space below image */
}

.mcvg-thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mcvg-gallery-item a:hover .mcvg-thumbnail-container img {
    transform: scale(1.05);
}

.mcvg-play-icon,
.mcvg-zoom-icon { /* Combined styles for icons */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows click through to the image */
}

.mcvg-gallery-item a:hover .mcvg-play-icon,
.mcvg-gallery-item a:hover .mcvg-zoom-icon { /* Combined hover effect */
    opacity: 1;
}

/* Optional: if you want different sizes/colors for zoom icon */
.mcvg-zoom-icon {
    font-size: 30px; /* Slightly smaller */
    background-color: rgba(0, 0, 0, 0.6);
}

.mcvg-gallery-item h3 {
    font-size: 1.1em;
    margin: 10px 0;
    min-height: 2.2em; /* Ensure consistent height for titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Removed the .mcvg-permalink and its child styles */

/* Responsive adjustments */
@media (max-width: 768px) {
    .mcvg-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mcvg-col-3, .mcvg-col-2, .mcvg-col-4 {
        grid-template-columns: 1fr;
    }
}

/* Styles for the single media page (if you choose to use its template) */
.mcvg-single-media-page .site-main { /* Updated class name */
    max-width: 960px; /* Adjust as needed */
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.mcvg-single-media-page .entry-header {
    text-align: center;
    margin-bottom: 20px;
}
.mcvg-single-media-page .entry-content {
    text-align: center; /* Center the media embed/image */
}
.mcvg-single-media-page .entry-content iframe,
.mcvg-single-media-page .entry-content img { /* Also target img */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mcvg-gallery-tabs {
   display: flex;
    justify-content: center; /* Centers the tabs horizontally */
    align-items: center;    /* Centers the tabs vertically (if needed) */
    margin-bottom: 20px; 
    gap: 10px;
}

.mcvg-tab {
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    border-radius: 5px;
    color:#000000;
}

.mcvg-tab.active,
.mcvg-tab:hover {
    background-color: #0000FF;
    color: #fff;
}


.mcvg-gallery-item {
    display: block; /* Default display for debugging */
}

.mcvg-gallery-item.hidden {
    display: none !important;
}