/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
*/
/* Wrapper */
.vg-wrapper {
    max-width: 100%;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}
/* Tabs */
.vg-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: none;
}
.vg-tab {
    padding: 10px 24px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.vg-tab:hover {
    background: #61ce70;
    border-color: #61ce70;
    color: #fff;
}
.vg-tab.active {
    background: #61ce70;
    border-color: #61ce70;
    color: #fff;
    font-weight: 500;
}
/* Panels */
.vg-panel {
    display: none;
}
.vg-panel.active {
    display: block;
}
/* Showcase embed - full width 16:9 */
.vg-showcase {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    display: block;
}
.vg-showcase iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block !important;
}
/* Override Hello Elementor content width */
.page-template-page-video-gallery .site-main,
.page-template-page-video-gallery .entry-content,
.page-template-page-video-gallery #primary,
.page-template-page-video-gallery #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Tablet */
@media (max-width: 1024px) {
    .vg-showcase {
        padding-bottom: 75%;
    }
}
/* Mobile landscape */
@media (max-width: 768px) {
    .vg-wrapper { padding: 1rem; }
    .vg-tab { font-size: 13px; padding: 8px 16px; }
    .vg-showcase {
        padding-bottom: 100%;
    }
}
/* Mobile portrait */
@media (max-width: 480px) {
    .vg-showcase {
        padding-bottom: 150%;
    }
}



/* ==============================
   Photo Gallery
   ============================== */

/* Override Hello Elementor content width for photo gallery */
.page-template-page-photo-gallery .site-main,
.page-template-page-photo-gallery .entry-content,
.page-template-page-photo-gallery #primary,
.page-template-page-photo-gallery #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Grid */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

/* Each photo item */
.pg-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
}

.pg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pg-item:hover img {
    transform: scale(1.05);
}

/* Mobile */
@media (max-width: 600px) {
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}