 :root {
    --lpp-brown: #4a3328;
    --lpp-sand: #ccb693;
    --lpp-cream: #f7f3ed;
    --lpp-green: #6c7a4a;
    --lpp-gold: #b38b59;
    --lpp-red: #c54a43;
    --lpp-shadow: 0 18px 35px rgba(62, 45, 32, 0.15);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.image-checkbox {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.image-checkbox:checked + .checkmark {
    background: #007cba;
    border-color: #007cba;
}

.image-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-info {
    transform: translateY(0);
}

.image-category {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.image-date {
    font-size: 12px;
    opacity: 0.9;
}

/* Admin Panel */
.lpp-admin-controls {
    margin: 20px 0;
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 8px;
}

.lpp-admin-controls h3 {
    color: #007cba;
    margin-top: 0;
    padding: 15px 20px 0;
}

.lpp-admin-controls h4 {
    margin: 15px 0 10px;
    color: #333;
}

.lpp-folder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.lpp-folder-item {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lpp-folder-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lpp-upload-section form {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#lpp-upload-form select,
#lpp-upload-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#lpp-upload-form button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#lpp-upload-form button:hover {
    background: #005a87;
}

.lpp-edit-image {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    margin-left: 5px !important;
    transition: background 0.3s ease;
}

.lpp-edit-image:hover {
    background: #005a87 !important;
}

/* Edit Modal */
#lpp-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: none;
}

#lpp-edit-modal > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#lpp-edit-form div {
    margin: 10px 0;
}

#lpp-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#lpp-edit-form input,
#lpp-edit-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#lpp-edit-form button {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

/* Hero Banner */
.custom-hero-banner {
    position: relative;
    min-height: clamp(160px, 35vh, 320px);
    background-image: url('https://lollipopspartypackages.ca/wp-content/uploads/2025/12/lpp-gallery-custom.avif');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(16px, 4vw, 56px) clamp(12px, 3vw, 40px);
}

.banner-content {
    padding: clamp(16px, 4vw, 32px) clamp(16px, 4vw, 40px);
    max-width: min(90vw, 900px);
    width: 100%;
    text-align: center;
}

.banner-title {
    color: #CCB693;
    font-size: clamp(22px, 4vw, 40px);
    margin: 0 0 clamp(8px, 1.5vh, 20px) 0;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.banner-breadcrumbs {
    color: #ffffff;
    font-size: clamp(12px, 2.5vw, 18px);
    position: relative;
    z-index: 10;
    margin-bottom: clamp(12px, 2vh, 20px);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Fixes */
@media (max-width: 480px) {
    .custom-hero-banner {
        background-attachment: scroll;
    }

    .banner-content {
        max-width: 95vw;
        padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 24px);
    }
}

.lpp-gallery-container {
    max-width: 1200px;
    width: 100%;
    margin-inline: auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 2.5rem;
    grid-template-areas:
        "title title"
        "intro intro"
        "featured featured"
        "filters results";
    background: var(--lpp-sandstone);
    border-radius: 1.5rem;
}

.lpp-gallery-container h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: var(--lpp-brown);
    letter-spacing: 0.03em;
}

.lpp-gallery-container > p {
    grid-area: intro;
    margin: 0 0 1.5rem;
    color: #5a4336;
    font-size: 1.05rem;
}

/* Featured Images */
.featured-images-section {
    margin-bottom: 2rem;
    grid-column: 1 / -1;
    width: 100%;
}

.featured-images-section .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.featured-images-layout {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.featured-left,
.featured-right {
    flex: 1 1 0;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 400px;
    height: 100%;
}

.featured-caption {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(204, 182, 147, 0.3);
}

.featured-caption p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a3328;
    font-weight: 500;
    line-height: 1.4;
}

.featured-left .image img,
.featured-right .image img {
    margin-bottom: 0 !important;
}

.featured-text-card {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    margin-top: 1rem;
}

.featured-text-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.featured-text-card .card-content {
    padding: 1rem 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-text-card p {
    margin: 0;
    color: #4a3328;
    font-family: inherit;
    line-height: 1.4;
    font-size: 0.9rem;
    text-align: center;
}

.featured-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-end;
    min-height: 400px;
}

.featured-right-top {
    flex: 1;
    display: flex;
}

.featured-right-bottom {
    flex: 0 0 auto;
    display: flex;
    align-self: flex-end;
}

.featured-right-bottom .image {
    width: 100%;
    aspect-ratio: 4 / 5 !important;
}

.featured-images-section .image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--lpp-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    position: relative;
}


.featured-images-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--lpp-green);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.gallery-filters {
    grid-area: filters;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-category,
.sort-options {
    background: white;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--lpp-shadow);
    border: 1px solid rgba(204, 182, 147, 0.5);
}

.category-cta {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lpp-brown);
    margin: 0 0 0.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--lpp-brown), var(--lpp-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.category-description {
    font-size: 1.25rem;
    color: black;
    text-align: center;
    margin: 1rem 0 2rem 0;
    font-style: italic;
    line-height: 1.4;
}

.category-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--lpp-brown);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    border-bottom: 2px solid var(--lpp-sand);
    padding-bottom: 0.5rem;
}

.category-item label {
    text-transform: lowercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #8c7c6e;
}

.sort-options label {
    text-transform: lowercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #8c7c6e;
}

.category-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.category-item {
    position: relative;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: scale(1.02);
}

.category-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-instructions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(204, 182, 147, 0.1), rgba(248, 249, 250, 0.95));
    border: 1px solid rgba(204, 182, 147, 0.4);
    box-shadow: 0 6px 16px rgba(58, 43, 31, 0.12);
    animation: filterHintPulse 2.8s ease-in-out 0.3s 3;
}

.filter-instructions-icon {
    font-size: 1.6rem;
    line-height: 1;
    animation: filterHintBounce 2s ease-in-out infinite;
}

.filter-instructions-text {
    font-size: 0.9rem;
    color: var(--lpp-brown);
}

.filter-instructions-text strong {
    font-weight: 700;
}

@keyframes filterHintPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 6px 16px rgba(58, 43, 31, 0.12);
        opacity: 1;
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(58, 43, 31, 0.18);
        opacity: 0.98;
    }
}

@keyframes filterHintBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-5px); }
    70% { transform: translateY(-3px); }
    90% { transform: translateY(-1px); }
}

/* Category “button” styling (label contents) */
.category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #fdfcf9 0%, #f8f5f0 100%);
    color: var(--lpp-brown);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: none;
}

.category-button-main {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.category-button-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 0.95rem;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.category-button-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: translateY(10px);
}

.category-button-text {
    text-transform: capitalize;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #8c7c6e;
}

.category-button-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--lpp-green);
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.category-button-meta-text {
    display: none;
}

.category-button-chevron {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.25s ease;
}

.category-item:hover .category-button {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 22px rgba(58, 43, 31, 0.18);
}

.category-item:hover .category-button-icon {
    transform: scale(1.05);
}

.category-item:hover .category-button-meta {
    opacity: 1;
}

.category-item:hover .category-button-chevron {
    transform: translateX(3px);
}

.category-item input[type="checkbox"]:checked + .category-button {
    background: linear-gradient(135deg, var(--lpp-sand) 0%, #c8b08a 100%);
    color: #fff;
    border-color: var(--lpp-sand);
    box-shadow: 0 12px 26px rgba(204, 182, 147, 0.65);
    transform: translateY(-1px);
}

.category-item input[type="checkbox"]:checked + .category-button .category-button-text {
    color: #fff;
}

.category-item input[type="checkbox"]:checked + .category-button .category-button-icon {
    transform: scale(1.05);
}

.category-item input[type="checkbox"]:checked + .category-button .category-button-icon::before {
    content: "";
}

.category-item input[type="checkbox"]:checked + .category-button .category-button-meta-text {
    display: inline;
    color: #fff;
}

.category-item input[type="checkbox"]:checked + .category-button .category-button-chevron {
    transform: translateX(2px);
}

.category-item.category-disabled .category-button {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.category-item.category-disabled .category-button:hover {
    transform: none;
}

.category-item input[type="checkbox"]:focus-visible + .category-button {
    outline: 2px solid var(--lpp-green);
    outline-offset: 3px;
}

.sort-options select {
    margin-top: 0.8rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    background: #fdfcf9;
    color: var(--lpp-brown);
}

.gallery-results {
    grid-area: results;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    position: relative;
}

.gallery-results.is-filtering::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    z-index: 10;
}

.gallery-results.is-filtering::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(204, 182, 147, 0.3);
    border-top-color: var(--lpp-sand);
    transform: translate(-50%, -50%);
    animation: gallerySpinner 0.8s linear infinite;
    z-index: 11;
}

@keyframes gallerySpinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.gallery-results .results-count {
    text-align: right;
    font-weight: 600;
    color: var(--lpp-red);
    margin: 0;
}

.lpp-gallery-item {
    background: white;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(58, 43, 31, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
}

.lpp-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px rgba(58, 43, 31, 0.18);
}

.lpp-gallery-item.is-fading-out {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lpp-gallery-item.is-fading-in {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.lpp-gallery-image {
    position: relative;
    overflow: hidden;
}

.lpp-gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lpp-gallery-item:hover .lpp-gallery-image::after {
    opacity: 1;
}

.lpp-gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 0 !important;
}

.lpp-gallery-item .lpp-gallery-caption {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    float: none;
    clear: both;
}

.lpp-gallery-item .lpp-gallery-caption .lpp-gallery-category {
    font-weight: 600;
    color: #4a3328;
    text-transform: capitalize;
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    display: inline;
    font-family: inherit;
}

.gallery-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 51, 40, 0.92);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 35px rgba(41, 27, 20, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 20;
}

.gallery-scroll-top::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 60%);
}

.gallery-scroll-icon {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 14px solid white;
    position: relative;
}

.gallery-scroll-icon::after {
    content: "";
    position: absolute;
    top: 12px;
    left: -1px;
    width: 2px;
    height: 10px;
    background: white;
}

.gallery-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gallery-scroll-top:active {
    box-shadow: 0 12px 20px rgba(41, 27, 20, 0.3);
}

/* Active Filters */
.active-filters {
    margin-top: 1.25rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: rgba(204, 182, 147, 0.06);
    border: 1px solid rgba(204, 182, 147, 0.4);
    display: none;
}

.active-filters.is-visible {
    display: block;
}

.active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.active-filters-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--lpp-brown);
}

.clear-all-filters {
    border: none;
    background: var(--lpp-red);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 10px rgba(197, 74, 67, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.clear-all-filters:hover {
    background: #a94442;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(197, 74, 67, 0.45);
}

.clear-all-filters:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(197, 74, 67, 0.3);
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.active-filter-tag {
    border: none;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fff;
    color: var(--lpp-brown);
    box-shadow: 0 2px 6px rgba(58, 43, 31, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.active-filter-tag:hover {
    background: #f8f3ec;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(58, 43, 31, 0.25);
}

.active-filter-tag .tag-remove {
    font-size: 0.9rem;
}

.active-filter-tag .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 1024px) {
    .lpp-gallery-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "intro"
            "featured"
            "filters"
            "results";
        padding: 2.5rem 1.5rem;
        row-gap: 1.5rem;
    }

    .gallery-filters {
        flex-direction: column;
        gap: 1.25rem;
    }

    .category-item label {
        text-align: center;
        justify-content: center;
    }

    .gallery-results .results-count {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .lpp-gallery-container {
        padding: 2rem 1rem 3rem;
        border-radius: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-category,
    .sort-options {
        padding: 1rem;
        border-radius: 1rem;
    }

    .lpp-gallery-container h1 {
        font-size: 2rem;
    }

    .category-options {
        flex-direction: column;
    }

    .featured-images-section .columns {
        gap: 0.75rem;
    }

    .featured-images-section .image {
        border-radius: 0.75rem;
    }

    .featured-images-layout {
        flex-direction: row;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .featured-left,
    .featured-right {
        min-width: 200px;
        flex: 1;
    }

    .featured-left {
        gap: 0.5rem;
    }

    .featured-text-card .card-content {
        padding: 1rem;
    }

    .featured-text-card {
        margin-top: 0.75rem;
    }

    .featured-text-card .card-content {
        padding: 0.75rem 1rem;
    }

    .featured-text-card p {
        font-size: 0.8rem;
    }

    .featured-right {
        min-height: 300px;
        flex-direction: column;
        gap: 0.5rem;
    }

    .featured-right-bottom .image {
        aspect-ratio: 4 / 5 !important;
    }
}

@media (max-width: 520px) {
    .gallery-social-container {
        height: 70px;
        padding: 0.5rem;
    }

    .gallery-social-icons {
        gap: 1.2rem;
    }

    .gallery-social-link {
        width: 45px;
        height: 45px;
    }

    .gallery-social-link svg {
        width: 18px;
        height: 18px;
    }

    .category-cta {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .category-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .category-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .category-item label {
        font-size: 0.8rem;
        padding: 0.7rem 0.6rem;
        min-height: 50px;
    }

    .category-item label::before {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
        font-size: 10px;
    }

    .category-item label::after {
        display: none;
    }

    .lpp-gallery-item {
        border-radius: 1.1rem;
    }


    .lpp-gallery-item .lpp-gallery-caption {
        padding: 6px 10px;
        font-size: 11px;
    }

    .lpp-gallery-item .lpp-gallery-caption .lpp-gallery-category {
        font-size: 11px;
    }

    .gallery-scroll-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .featured-images-layout {
        gap: 0.5rem;
    }

    .featured-images-layout {
        gap: 0.25rem;
        margin: 1rem 0;
        max-width: 100%;
        width: 100%;
    }

    .featured-left,
    .featured-right {
        min-width: 150px;
        width: 100%;
        flex: 1;
        box-sizing: border-box;
    }

    .featured-left {
        gap: 0.25rem;
    }

    .featured-text-card .card-content {
        padding: 0.75rem;
    }

    .featured-text-card p {
        font-size: 0.8rem;
    }

    .featured-right {
        min-height: 250px;
        gap: 0.25rem;
    }

    .featured-right-top,
    .featured-right-bottom {
        flex: 1 1 auto;
        min-height: 120px;
    }

    .featured-right-bottom .image {
        aspect-ratio: 4 / 5 !important;
    }

    .featured-caption {
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .featured-caption p {
        font-size: 0.8rem;
    }
}

/* Social Icons */
.gallery-social-container {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(204, 182, 147, 0.1), rgba(248, 249, 250, 0.8));
    border-radius: 12px;
    border: 2px solid rgba(204, 182, 147, 0.2);
}

.gallery-social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.gallery-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(204, 182, 147, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-social-link:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: #CCB693;
    box-shadow: 0 6px 20px rgba(204, 182, 147, 0.3);
}

.gallery-social-link svg {
    transition: transform 0.3s ease;
}

.gallery-social-link:hover svg {
    transform: scale(1.1);
}

.shuffle-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.shuffle-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shuffle-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    font-family: inherit !important;
    font-size: 15px;
    font-weight: 600;
    color: rgba(74, 51, 40, 0.92);
    text-transform: uppercase;
    padding: 1.25em 2em;
    background: #faf8f6;
    border: 2px solid #c9b5a8;
    border-radius: 0.75em;
    transform-style: preserve-3d;
    transition: background 150ms cubic-bezier(0, 0, 0.58, 1), transform 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}

.shuffle-button::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d4c4b8;
    border-radius: inherit;
    box-shadow: 0 0 0 2px #c9b5a8, 0 0.625em 0 0 #f0e8e0;
    transform: translate3d(0, 0.75em, -1em);
    transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
}

.shuffle-button:hover {
    background: #f5f0eb;
    transform: translate(0, 0.25em);
}

.shuffle-button:hover::before {
    box-shadow: 0 0 0 2px #c9b5a8, 0 0.5em 0 0 #f0e8e0;
    transform: translate3d(0, 0.5em, -1em);
}

.shuffle-button:active {
    background: #f5f0eb;
    transform: translate(0em, 0.75em);
}

.shuffle-button:active::before {
    box-shadow: 0 0 0 2px #c9b5a8, 0 0 #f0e8e0;
    transform: translate3d(0, 0, -1em);
}

.lpp-gallery-item.shuffling {
    animation: shuffleFade 0.3s ease-in-out;
}

@keyframes shuffleFade {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}