/* =========================================================
   SweetMeet Profile Gallery
   ========================================================= */

.sm-profile-gallery {
    width: 100%;
}

.sm-profile-gallery-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.sm-profile-gallery-main-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.sm-gallery-lightbox-image{
    box-shadow:0 25px 60px rgba(0,0,0,.45);
}

/* Photo counter */

.sm-profile-gallery-count {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* Previous / next arrows */

.sm-profile-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.sm-gallery-lightbox-count{
    position: absolute;
    top:28px;
    left:28px;
    background:rgba(0,0,0,.65);
    color:#C8A96A;
    padding:8px 14px;
    border-radius:20px;
    font-weight:600;
}

.sm-gallery-lightbox-arrow{
    width:64px;
    height:64px;
    font-size:34px;
    border-radius:50%;
    background:rgba(255,255,255,.95);
    color:#000;
    transition:.2s;
}

.sm-gallery-lightbox-arrow:hover{
    transform:scale(1.08);
    background:#C8A96A;
    color:#fff;
}

.sm-profile-gallery-main:hover .sm-profile-gallery-arrow {
    opacity: 1;
}

.sm-profile-gallery-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.sm-profile-gallery-prev {
    left: 14px;
}

.sm-profile-gallery-next {
    right: 14px;
}

.sm-private-access-button {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 40;
    min-width: auto;
	min-height: 2.25rem;
    padding: 8px 18px;
    border: 1px solid #c9a45e;
    border-radius: 30px;
    background: #c9a45e;
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: .3px;
    transition: .25s;
}

.sm-private-access-button:hover{
    background:#c9a45e;
    color:#111;
}

/* Thumbnail strip */

.sm-profile-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.sm-profile-gallery-thumb {
    flex: 0 0 auto;
    width: 82px;
    height: 92px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.sm-profile-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-profile-gallery-thumb.is-active {
    border-color: #C8A96A;
}

.sm-gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.sm-gallery-lightbox.active{
    display:flex;
}

.sm-gallery-lightbox-image{
    max-width:92vw;
    max-height:92vh;
    border-radius:12px;
}

.sm-gallery-close{
    position:absolute;
    top:25px;
    right:25px;
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background:white;
    cursor:pointer;
    font-size:22px;
}

.sm-profile-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;

    border: 0;
    outline: 0;
    border-radius: inherit;

    background: transparent;
    box-shadow: none;

    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
}

.sm-profile-gallery-open:focus,
.sm-profile-gallery-open:focus-visible,
.sm-profile-gallery-open:hover,
.sm-profile-gallery-open:active {
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.sm-gallery-lightbox-content{
    position:relative;
    display:inline-block;
}

.sm-gallery-close{
    position:absolute;
    top:-18px;
    right:-18px;
}

.sm-gallery-lightbox-count{
    position:absolute;
    top:10px;
    left:80px;

    background:rgba(0,0,0,.65);
    color:#fff;

    padding:8px 14px;
    border-radius:20px;

    font-size:15px;
    font-weight:600;

    z-index:20;
}

.sm-gallery-lightbox-prev{
    left:-70px;
}

.sm-gallery-lightbox-next{
    right:-70px;
}



