/*
 *
 * City University of Hong Kong
 * ----------------------------
 * Site Specific CSS
 *
 */

/* ============================ Place your custom CSS here */

/* Common styles */

.all-lists li{
    margin-bottom: 1rem !important;
}

.g-25-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

/* Reset to g-4 for sm and larger */
@media (min-width: 576px) {
    .g-25-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
}

.g-25-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

/* Reset to g-3 for sm and larger */
@media (min-width: 576px) {
    .g-25-3 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

.link-scroll-margin{
    scroll-margin-top: 20px;
}

@media (min-width: 992px) {
    .link-scroll-margin{
        scroll-margin-top: 60px;
    }
}

.btn-cityu-outline{
    color: rgb(33, 37, 41);
    border: .667px solid rgb(222, 226, 230);
    outline: none;
}

.btn-cityu-outline:focus{
    color: rgb(33, 37, 41);
    border: .667px solid rgb(222, 226, 230);
    outline: 2px solid black;
}

.btn-cityu-outline:hover{
    color:#bf165e;
    border: .667px solid #bf165e;
    outline: none;
}

.image-cityu-outline:hover,
.image-cityu-outline:focus{
    outline: .667px solid #bf165e;
}

.ratio-3x4{
    --bs-aspect-ratio: calc(4 / 3 * 100%);
}

.pswp__custom-caption {
  background: rgba(0, 0, 0, 0.75);
  font-size: 1rem;
  color: #fff;
  width: calc(100% - 32px);
  max-width: 800px;
  padding: 1rem;
  border-radius: .375rem !important;
  position: absolute;
  left: 50%;
  bottom: 1rem;
  text-align: center;
  transform: translateX(-50%);
}

.artwork-expand{
    position: relative;
    max-height: 350px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.artwork-cover-gradient{
    position: absolute;
    padding: 0 !important;
    margin: 0 !important;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    min-height: 50px;
    transition: min-height 0.3s ease-in-out;
}

.artwork-cover-gradient.expanded{
    min-height: 0px;
}

.artwork-expand.expanded{
    max-height: 2500px;
}