/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --hsp-bg: #ffffff;
    --hsp-primary: #fc0084;
    --hsp-secondary: #818cf8;
    --hsp-text: #131111;
    --hsp-border: #c77ccf;
}

.gp-gallery-section {
    padding: 3rem 0;
    background: linear-gradient(to bottom, rgba(252, 0, 132, 0.05), transparent, rgba(129, 140, 248, 0.05));
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

.gp-gallery-section *, .gp-gallery-section *::before, .gp-gallery-section *::after {
    box-sizing: inherit;
}

.gp-container {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.gp-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gp-subtitle {
    color: var(--hsp-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

.gp-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    color: var(--hsp-text);
    font-weight: 700;
}
@media (min-width: 768px) {
    .gp-title {
        font-size: 3rem;
        line-height: 1;
    }
}

.gp-title .gp-text-gradient {
    background: linear-gradient(135deg, var(--hsp-primary), var(--hsp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gp-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    margin: 0 auto 40px;
    max-width: 36rem;
    line-height: 1.7;
    font-weight: 500;
    color: #131111;
}

/* Tabs */
.gp-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gp-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid var(--hsp-secondary);
    background: transparent;
    color: var(--hsp-secondary);
    cursor: pointer;
    font-family: inherit;
}

.gp-tab-btn svg {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.gp-tab-btn.active, .gp-tab-btn:hover {
    background: var(--hsp-secondary);
    color: var(--hsp-bg);
}

/* Tab Content */
.gp-tab-content {
    display: none;
    animation: gpFadeIn 0.5s ease forwards;
}

.gp-tab-content.active {
    display: block;
}

@keyframes gpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grids */
.gp-grid {
    display: grid;
    gap: 1.5rem;
}

.gp-grid-video {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .gp-grid-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .gp-grid-video { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gp-grid-image {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .gp-grid-image { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .gp-grid-image { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cards */
.gp-card {
    position: relative;
    background: white;
    border-radius: 1rem; /* 16px */
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gp-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gp-item-image.gp-card:hover {
    transform: translateY(-4px); /* hover:-translate-y-1 */
}

/* Card Media */
.gp-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f472b6, #e11d48); /* fallback gradient */
}

.gp-item-video .gp-card-media {
    aspect-ratio: 16 / 9;
}

.gp-item-image .gp-card-media {
    aspect-ratio: 1 / 1;
}

.gp-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.gp-card-icon {
    position: relative;
    z-index: 20;
    color: white;
}

.gp-card-overlay {
    position: absolute;
    inset: 0;
    transition: background-color 0.3s ease;
    z-index: 15;
}

.gp-item-video .gp-card-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}
.gp-item-video:hover .gp-card-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.gp-item-image .gp-card-overlay {
    background-color: transparent;
}
.gp-item-image:hover .gp-card-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Card Body */
.gp-card-body {
    padding: 1rem;
}

.gp-card-body-center {
    padding: 0.75rem;
    text-align: center;
}

.gp-card-title {
    font-weight: 600;
    color: #1f2937; /* gray-800 */
    margin: 0;
    font-size: 1rem;
}

.gp-card-meta {
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.gp-card-title-small {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin: 0;
}

/* Modal Styling */
.gp-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; right: 0; bottom: 0;
}

.gp-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
}

.gp-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
}

.gp-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

.gp-modal-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.gp-modal-body iframe, .gp-modal-body img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gp-modal-body img {
    object-fit: contain;
}

.gp-modal-vertical {
    max-width: 400px;
}

.gp-modal-vertical .gp-modal-body {
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
}