/* [Scenes tab] Fit more thumbnails on each row */

.grid { padding: 0px !important; }

/* [Performers tab] Place performer image in the background on performer page */

.performer-image-container.col-md-4.text-center {
    flex: 0 0 0%;
    max-width: 0%;
}

#performer-page .performer-image-container .btn.btn-link {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 0;
}

#performer-page .performer-image-container .btn.btn-link:before {
    content: '';
    position:absolute;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(0,0,0,0) 0%,rgb(0 0 0 / 75%) 100%);
    z-index: 1;
}

#performer-page .performer-image-container .performer {
    max-height: none;
    max-width: none;
    width: 100%;
}

/* [Studios tab] Show more item per row */
:not(.recommendation-row .studio-card).studio-card {
    width: 15%
}
:not(.recommendation-row .studio-card-image).studio-card-image {
    width: 100%
}
.studio-card h5 {
    text-align: center !important;
    display: block;
}

/* [Global changes] Hide the Donate button */

.btn-primary.btn.donate.minimal {
  display: none;
}

/* [Global changes] Hide 0 count badges */
span.badge[data-value="0"] {
    display: none;
}

/* [Global changes] Modify card when checkbox is selected */
.grid-card.card:has(input:checked) {
   box-shadow: 0 0 0 1px var(--primary,rgba(255, 255, 255, 0.30));
}

/* [Group Item] (CUSTOM) Both cover same height */
#group-page .detail-header-image .group-images img {
    height: 19.9rem; /* Set a fixed height to match both images */
    width: auto; /* Allow the width to adjust automatically based on the image’s aspect ratio */
    object-fit: contain; /* Ensure the image fits within the given height and maintains aspect ratio */
    max-width: 100%;
}

/* [Group Item (CUSTOM) Reverse cover (for JAV) */
.group-images {
    flex-direction: row-reverse;
}

/* [Global changes] (CUSTOM) Rename groups */
div[data-rb-event-key="/groups"] a span,
#performer-tabs-tab-groups text {
    display: none;
}
div[data-rb-event-key="/groups"] a::after,
#performer-tabs-tab-groups::before {
  content: 'JAV';
}

/* [Global changes] (CUSTOM) Hide tag image */
.tag-card-image {
  max-height: 0px;
  visibility: hidden;
} 
.tag-card .card-section .card-section-title .TruncatedText {
  padding-bottom: 7px;
}

/*[Groups Tab] (Custom) Alternative card style */
@keyframes scrolling-text {
    0% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(calc(-100% - 30px));
    }
}

.row:has(> .group-card) {
    align-items: flex-end;
}

.group-card-image, .group-card .card-section, .group-card__description, .group-card .card-popovers {
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
} 

.group-card {
    padding-bottom: 0px !important;
    max-height: 100% !important;
}

.group-card .card-section {
    position: absolute;
    bottom: -26px;
    opacity: 1;
    text-shadow: 1px 1px 4px #000;
}

.group-card .card-popovers {
    position: absolute;
    left: 25%;
    bottom: calc(-26px - 27px);
    opacity: 0;
} 

.group-card hr { 
    display: none;
}

.group-card:hover .group-card-image {
    filter: brightness(.6);
    /* transform: scale(1.02); */
}
.group-card:hover .card-section {
    opacity: 1;
    bottom: calc(0px + 27px);
}
.group-card:hover .card-popovers {
    bottom: 0;
    opacity: 1;
} 
.group-card hr {
    visibility: hidden;
    margin: 0px;
}

.grid-card a .card-section-title {
    font-weight: 600;
}

.group-card .card-section {
    padding-left: 0.66rem;
    padding-right: 0.66rem;
}

.group-card .card-section a .card-section-title .TruncatedText {
    padding: 0.33rem;
}

.group-card .card-section .group-card__details {
    padding-left: 0.33rem;
    padding-right: 0.33rem;
}

.group-card__details {
    overflow: visible;
    position: relative;
}

.group-card__description {
    overflow: hidden;
    white-space: nowrap; 
    text-overflow: ellipsis;
    display: block;
}

.card-section {
    width: 100%;
}

.group-card__description {
    opacity: 0;
    /* --animation-duration: 5s; */
    /* animation: none; */
}


.group-card:hover .card-section .group-card__details .group-card__description {
    opacity: 1;
}

.group-card .card-section a .card-section-title {
    margin-bottom: 0px;
}
