/* Common Styles */
.tlpg-single-gallery,
.tlpg-single-video {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tlpg-header {
    margin-bottom: 30px;
    text-align: center;
}

.entry-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.tlpg-event-details {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.event-date,
.event-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: #007bff;
    color: white;
}

.event-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Layout Switcher */
.tlpg-layout-switcher {
    text-align: center;
    margin: 30px 0;
}

.tlpg-layout-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.tlpg-layout-switcher a:hover,
.tlpg-layout-switcher a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Grid Layout */
.tlpg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto 40px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.tlpg-gallery-image {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tlpg-gallery-image:hover {
    transform: translateY(-5px);
}

.tlpg-gallery-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.tlpg-gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.tlpg-gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlpg-gallery-title {
    padding: 15px;
    text-align: center;
    color: #e00707;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    pointer-events: auto;
}

/* Video Layout */
.tlpg-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 30px;
}

.tlpg-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tlpg-video-content {
    margin-top: 30px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tlpg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .tlpg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
}

/* Archive Styles */
.tlpg-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tlpg-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.archive-description {
    color: #666;
    margin-bottom: 30px;
}

/* Archive Grid Layout */
.tlpg-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto 40px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.tlpg-archive-item {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tlpg-archive-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tlpg-archive-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.tlpg-archive-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlpg-archive-item:hover .tlpg-archive-item-image img {
    transform: scale(1.05);
}

.tlpg-archive-item-content {
    padding: 10px;
}

.tlpg-archive-item-title {
    font-size: 1.1em;
    margin: 0;
    color: #333;
    font-weight: 500;
}

.tlpg-archive-item-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Category Filter */
.tlpg-category-filter {
    margin: 30px 0;
    text-align: center;
}

.tlpg-category-filter a {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tlpg-category-filter a:hover,
.tlpg-category-filter a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    margin-top: 40px;
}

.nav-links {
    display: inline-flex;
    gap: 5px;
}

.page-numbers {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
}

.page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.5em;
    }
    
    .tlpg-category-filter a {
        padding: 5px 15px;
        font-size: 14px;
    }
}

/* Shortcode Grid Styles */
.tlpg-shortcode-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tlpg-grid-item {
    background: #fff;
    text-align: center;
}

.tlpg-grid-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tlpg-grid-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.tlpg-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlpg-grid-item:hover .tlpg-grid-image img {
    transform: scale(1.05);
}

.tlpg-grid-title {
    font-size: 1.1em;
    margin: 0;
    padding: 10px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .tlpg-shortcode-grid {
        grid-template-columns: repeat(min(var(--columns, 3), 2), 1fr);
    }
}

@media (max-width: 576px) {
    .tlpg-shortcode-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.tlpg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
}

.tlpg-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tlpg-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.tlpg-lightbox-image-wrapper {
    position: relative;
    display: inline-block;
}

.tlpg-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.tlpg-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.tlpg-lightbox-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.tlpg-lightbox-close i {
    color: #333;
    font-size: 16px;
}

.tlpg-lightbox-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    padding: 10px;
    font-size: 14px;
}

/* Navigation Styles (keep existing nav styles) */
.tlpg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    cursor: pointer;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tlpg-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.tlpg-lightbox-prev {
    left: 20px;
}

.tlpg-lightbox-next {
    right: 20px;
}

/* Modern Style */
.tlpg-lightbox-nav.modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tlpg-lightbox-nav.modern:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Minimal Style */
.tlpg-lightbox-nav.minimal {
    background: none;
    font-size: 24px;
}

.tlpg-lightbox-nav.minimal:hover {
    background: none;
    color: #007bff;
}

/* Navigation Icons */
.tlpg-lightbox-nav i {
    display: block;
    font-size: 20px;
    line-height: 1;
}

/* Updated Archive Styles */
.tlpg-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tlpg-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

/* Category Filter */
.tlpg-category-filter {
    margin: 30px 0;
    text-align: center;
}

.tlpg-category-filter a {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tlpg-category-filter a:hover,
.tlpg-category-filter a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Gallery Grid */
.tlpg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0 auto 40px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.tlpg-gallery-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100%;
}

.tlpg-gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.tlpg-gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlpg-gallery-image:hover img {
    transform: scale(1.05);
}

.tlpg-gallery-title {
    padding: 15px;
    text-align: center;
    color: #db0c0c;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    margin-top: 40px;
}

.nav-links {
    display: inline-flex;
    gap: 5px;
}

.page-numbers {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
}

.page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 992px) {
    .tlpg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .tlpg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .archive-title {
        font-size: 1.8em;
    }
    
    .tlpg-category-filter a {
        padding: 5px 15px;
        font-size: 13px;
    }
}

/* Archive Grid Specific Styles */
.tlpg-gallery-grid .tlpg-gallery-image {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tlpg-gallery-grid .tlpg-gallery-image:hover {
    transform: translateY(-5px);
}

.tlpg-gallery-grid .tlpg-gallery-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.tlpg-gallery-grid .tlpg-gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.tlpg-gallery-grid .archive-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlpg-gallery-grid .tlpg-gallery-image:hover .archive-image {
    transform: scale(1.05);
}

.tlpg-gallery-grid .tlpg-gallery-title {
    padding: 15px;
    text-align: center;
    color: #c90f0f;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
}

.elementor-widget-tlpg_gallery_grid .tlpg-gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Default 4:3 ratio */
    overflow: hidden;
}

.elementor-widget-tlpg_gallery_grid .tlpg-gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.elementor-widget-tlpg_gallery_grid .tlpg-gallery-image:hover img {
    transform: scale(1.05);
} 