/* Layout & Filtering Header */
.scf-gallery-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
}
.section-main-title {
    margin-bottom: 25px;
    color: var(--2-c-2-b-29, #2C2B29);
    text-align: center;
    font-family: "Instrument Sans";
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    text-transform: capitalize;
}

.category-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.cat-tab-btn {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid #b73232;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid var(--b-82-d-30, #B82D30);
    background: linear-gradient(180deg, #FFF 13.64%, #FFB8B9 148%, #B82D30 546.97%);
    color: #B82D30;
    font-family: "Rethink Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    letter-spacing: .5px;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
    color: #fff;
    box-shadow: 0 4px 12px rgba(183, 50, 50, 0.3);
    border-radius: 12px;
    border: 1px solid var(--b-82-d-30, #B82D30);
    background: linear-gradient(180deg, #B82D30 13.64%, #E0B3B4 93.65%, #B82D30 176.14%);
}
/* 9 Posts 3x3 Grid */
.scf-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

@media (max-width: 1024px) {
    .scf-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .scf-posts-grid { grid-template-columns: 1fr; }
}

/* Premium Cards Structure */
.scf-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 470px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    background-color: #1a1a1a;
}

.scf-top-title {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
    color: var(--b-82-d-30, #B82D30);
    font-family: "Instrument Sans";
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.scf-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.scf-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	
}

/* .scf-slider-wrapper img {
   width: 100%;
   height: 100%;
   transition:all .5s ease-in-out;
}
.scf-slider-wrapper:hover img {
    transform: scale(1.4);
} */

/* image zoom  */

.scf-slider-container {
    position: relative;
    overflow: hidden;
}

.scf-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.scf-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    backface-visibility: hidden;
    clip-path: inset(0% 0% 0% 0%);
}


.scf-img:hover {
    transform: scale(1.2);
}

.scf-top-title {
    position: absolute;
    top: 11px;
    left: -22px;
    width: 100%;
    z-index: 5;
    text-align: right;
}

.scf-footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.scf-footer-overlay a, 
.scf-footer-overlay .scf-dots span {
    pointer-events: auto;
}

/* End  */

.scf-slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
	transition:all .5s ease-in-out;
}

/* Navigation Arrow Keys inside Card */
.scf-slider-container button {
    border-radius: 12px;
    border: 1px solid #ffffff80 !important;
    background: radial-gradient(66.69% 133.75% at 50% 50%, rgba(255, 255, 255, 0.24) 0%, rgba(44, 43, 41, 0.24) 100%);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(1px);
    display: flex;
    width: 40px;
    height: 50px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.scf-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff !important;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    transition: all 0.2s ease;
}

/* .scf-arrow-btn:hover { background: rgba(255, 255, 255, 0.6); } */
/* .scf-arrow-btn:hover {
    background: #b73232ba;
} */

.scf-arrow-btn:hover,
.scf-arrow-btn:focus,
.scf-arrow-btn:focus-visible,
.scf-arrow-btn:active {
    background: #b73232ba !important;
    outline: none;
}

.scf-actions a:hover {
    color: #FFD83B !important;
}
.scf-prev { left: 15px; }
.scf-next { right: 15px; }

/* Overlay Gradient Footer Layer */
.scf-footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
/*     background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); */
	background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 4;
}

.scf-slider-title {
    margin: 0 0 12px 0;
    text-align: center;
    color: var(--ffffff, #FFF);
    font-family: "Rethink Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.88px;
}

/* Custom Dots */
.scf-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.scf-dot {
    width: 6px;
    height: 6px;
    background-color: #FFFEF4;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scf-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--f-5-ec-49, #F5EC49);
}

/* Dynamic Action Buttons */
.scf-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.scf-actions a {
    display: flex;
    gap: 8px;
    color: var(--fffef-4, #FFFEF4);
    font-family: "Rethink Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    align-items: center;
}

/* WordPress Pagination Section Styling */
.scf-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.scf-pagination .page-numbers {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scf-pagination .page-numbers.current, .scf-pagination .page-numbers:hover {
    background: #b73232;
    color: #fff;
    border-color: #b73232;
}

.scf-pagination i .popup-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 11px;
}

/* Popup Gallery/Lightbox Styles */
.scf-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    background: rgba(44, 43, 41, 0.75);
}

.scf-popup-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .scf-popup-content img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 12px !important;
    object-fit: contain;
} */

.scf-popup-content img {
    max-width: 100%;
    border-radius: 12px !important;
    object-fit: cover;
    display: flex;
    width: 750px;
    height: 650px !important;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}
/* 

.scf-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
}
 */
.scf-close {
    position: absolute;
    top: 11%;
    right: 28%;
    color: #B82D30;
    font-size: 44px;
    cursor: pointer;
    border-radius: 100px;
    background: radial-gradient(66.69% 133.75% at 50% 50%, #FFF 0%, rgba(255, 255, 255, 0.65) 100%);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(1px);
    display: flex;
    height: 47px;
    padding: 0px 9px 7px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.scf-popup-controls {
    display: flex;
    gap: 15px;
    margin-top: -60px;
}

.scf-popup-arrow {
    background: #fff;
    border: none;
    width: 36px;
    height: 45px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b73232;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.scf-popup-controls button {
    border-radius: 12px !important;
    border: 0.5px solid #FFF !important;
    background: radial-gradient(66.69% 133.75% at 50% 50%, #FFF 0%, rgba(255, 255, 255, 0.00) 100%) !important;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(1px) !important;
}

.myright i {
    transform: rotate(-45deg);
    font-size: 20px;
}
