/*********************/
/* Gallery */
/*********************/

h1 {
    margin-top: 0;
}

h2.gallery {
    margin-top: 6px;
}

#gallery {
    margin-bottom: 30px;
}

#gallery .caption, #gallery-photo-details {
    font-size: 1.35rem;
}

#gallery-photo-details h1 {
    font-size: 1.8rem;
}

@media (min-width: 600px) {
    #social-media .left a {
        margin-left: 6px;
    }
}

.gallery-block {
    margin-top: 7px;
    margin-bottom: 5px;
}

#gallery-breadcrumbs {
    margin-top: 4px;
    margin-bottom: 9px;
    font-size: 1.35rem;
}

#gallery-name {
    padding-top: 4px;
    padding-bottom: 4px;
    background-color: #26aae2;
    color: white;
}


#gallery-name h1, #gallery-name h2 {
    color: white;
    text-align: center;
    border-bottom: none;
    margin-top: 0;
}


#gallery-how-to-use {
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 6px;
    padding-right: 6px;
    background-color: #F1F2F2;
    margin-top: 12px;
    margin-bottom: 12px;
}

#gallery-how-to-use img {
    padding-left: 10px;
    margin-top: 6px;
    height: 64px;
}

#gallery-how-to-use p {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: bold;
    margin-top: 3px;
    margin-bottom: 6px;
}

#gallery-how-to-use h2 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 6px;
    margin-bottom: 4px;
}

#gallery-sidebar-advert {
    margin-top: 2px;
    margin-bottom: 0;
}

#gallery-sidebar-advert h2 {
    font-size: 10px;
}

#gallery-below-line-advert h2 {
    font-size: 12px;
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
}

/* Thumbnails */



.thumbnail {
    height: 222px;
}

@media (max-width: 380px) {
    .thumbnail {
        height: 160px;
    }
}


.thumbnail a > img {
    overflow: hidden;
    max-width: 100%;
    max-height: 170px;
}

.thumbnail .caption {
    padding-left: 0;
    padding-right: 0;
    height: 52px;
    overflow: hidden;
}

#gallery-photo img {
    max-width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

#gallery-sidebar-advert {
    margin-bottom: 16px;
}

#gallery-sidebar-advert h2 {
    margin-top:16px;
}

.photo-meta-list {
    margin-bottom: 20px;
}

.photo-meta-item {
    display: flex;
    margin-bottom: 12px;
    align-items: baseline;
}

.photo-meta-label {
    width: 110px;
    flex-shrink: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #666;
}

.photo-meta-label::after {
    content: ":";
    color: #999;
    margin-right: 8px;
}

.photo-meta-value {
    flex-grow: 1;
    word-break: break-word;
}
.gallery-download-dropdown {
    margin: 20px 0 24px;
}

.gallery-download-dropdown .dropdown-menu {
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 240px;
}

.gallery-download-dropdown .dropdown-menu > li > a {
    padding: 8px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.gallery-download-dropdown .dropdown-menu > li > a:hover,
.gallery-download-dropdown .dropdown-menu > li > a:focus {
    background-color: #f5f9fc;
    color: #26aae2;
}

.gallery-download-dropdown .dropdown-header {
    padding: 8px 20px 4px;
    font-size: 1.1rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gallery-download-dropdown .main-download-link {
    display: block;
}

.gallery-download-dropdown .main-download-link strong {
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 2px;
}

.gallery-download-dropdown .main-download-link .fa {
    margin-right: 6px;
    color: #26aae2;
}

.gallery-download-dropdown .main-download-link .help-block {
    margin: 0;
    font-size: 1.1rem;
    color: #777;
    margin-left: 20px;
}

.gallery-download-dropdown .download-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-download-dropdown .download-size {
    font-weight: 600;
    font-size: 1.3rem;
}

.gallery-download-dropdown .download-res {
    font-size: 1.2rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 12px;
}

/* Download Page Styles */
.download-page-header {
    margin-bottom: 30px;
}

.download-page-header h1 {
    color: #222;
    margin-bottom: 10px;
    border-bottom: 2px solid #26aae2;
    padding-bottom: 15px;
    display: inline-block;
}

.download-preview-section {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
}

.download-preview-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #fff;
}

.download-content-section {
    background: #fff;
    padding: 0;
}

.download-info-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.download-info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donation-appeal {
    background: #fdfdfd;
    padding: 20px;
    margin-bottom: 25px;
}

.donation-appeal p {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
}

.license-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.attribution-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-family: monospace;
    font-size: 1.25rem;
    color: #333;
    margin-top: 20px;
}

.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.download-option-card {
    flex: 1 1 200px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.download-option-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.download-option-card p {
    margin-bottom: 15px;
    color: #888;
    font-size: 1.3rem;
}

.photo-label::after {
    content: ":";
    color: #999;
}

.photo-copyright {
    margin-top: 16px;
    font-size: 1.3rem;
    color: #777;
    font-style: italic;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.photo-copy-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.photo-copy-links h5 {
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: #333;
    font-weight: 700;
    margin-bottom: 12px;
}

#gallery-photo-details .dropdown
{
    margin: 10px;
    margin-left: 0;
}

#gallery-cc img  {
    max-width: 170px;
}

#gallery-cc p {
    padding-left: 20px;
}

#gallery-thumbnails .thumbnail {
    height: 180px;
}


/* .gallery-logo { */
/*     /\* font-family: "HelveticaNeue-CondensedBold", "HelveticaNeueBoldCondensed", "HelveticaNeue-Bold-Condensed", "Helvetica Neue Bold Condensed", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosCnBold', "Helvetica", "Tahoma", "Geneva", "Arial Narrow", "Arial", sans-serif; *\/ */
/*     font-weight: 600; */
/*     font-stretch: condensed; */
/*     font-size: 25px; */
/*     color: black; */
/* } */

#gallery-logo a:hover {
    text-decoration: none;
}

#gallery-menu ul {
    padding-left: 0;
}

#gallery-menu li {
    width: 150px;
}

#gallery-photo-details {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

#gallery-photo-details h1 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #26aae2;
    font-size: 2.2rem;
    color: #222;
}

.sidebar-block {
    max-width: 100%;
}

/* Adapted from https://www.w3schools.com/css/css_tooltip.asp */
/* Tooltip container */

.thumbnail {
    margin-bottom: 0;
    padding-bottom: 0;
}

.thumbnail .tooltiptext {
    display: none;
    position: relative;
    top: -210px;
    left: 0px;
    padding-bottom: 0;
    margin: 0;
    padding: 4px;
    background-color: rgba(255, 255, 230, 0.7);
    /* border-radius: 25px;*/
    color: black;
    font-size: 12px;
    z-index: 1;
}


/* Show the tooltip text when you mouse over the tooltip container */
.thumbnail:hover .tooltiptext {
    display: flex;
}

.tooltiptext a {
    color: black;
    text-decoration: none;
}

.gallery-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
    padding: 60px 20px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-hero h1 {
    margin: 0 0 12px 0;
    font-size: 3.6rem;
    font-weight: 700;
    border-bottom: none;
    letter-spacing: -0.5px;
}

.gallery-hero-description {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    color: #ccc;
    font-weight: 300;
}

.gallery-search-form {
    display: flex;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #fff;
}

.gallery-search-form input[type="text"] {
    flex: 1;
    min-width: 220px;
    border: none;
    border-radius: 0;
    padding: 15px 24px;
    font-size: 1.6rem;
    outline: none;
    color: #333;
}

.gallery-search-form button {
    border: 0;
    border-radius: 0;
    padding: 15px 30px;
    background: #26aae2;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-search-form button:hover {
    background: #1c8fc0;
}

.gallery-featured-slider-wrap {
    margin-bottom: 32px;
    overflow: hidden;
}

.gallery-swiper {
    width: 100%;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-swiper .swiper-slide a {
    display: block;
    position: relative;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .gallery-swiper .swiper-slide img {
        height: 220px;
    }
}

.gallery-swiper .swiper-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.4;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.35);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background 0.2s;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
    background: rgba(0,0,0,0.65);
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: 700;
}

.gallery-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #26aae2;
}

.gallery-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 16px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.gallery-latest-head h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #111;
}

.gallery-layout-switch {
    display: inline-flex;
    border: 1px solid #d8d8d8;
    overflow: hidden;
    background: #f7f7f7;
}

.gallery-layout-switch .layout-btn {
    padding: 8px 16px;
    color: #555;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.gallery-layout-switch .layout-btn + .layout-btn {
    border-left: 1px solid #d8d8d8;
}

.gallery-layout-switch .layout-btn:hover {
    background: #ebebeb;
    color: #111;
}

.gallery-layout-switch .layout-btn.is-active {
    background: #111;
    color: #fff;
}

/* -- grid layout ---- */
.gallery-photo-list.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 600px) {
    .gallery-photo-list.layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-photo-list.layout-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-photo-list.layout-grid .gu-photo-card__img {
    aspect-ratio: 3 / 2;
}

/* ---- Mosaic layout ---- */
.gallery-photo-list.layout-mosaic {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.gallery-photo-list.layout-mosaic .gallery-photo-card {
    overflow: hidden;
    /* width + height set by the Js */
}

.gallery-photo-list.layout-mosaic .gu-photo-card {
    height: 100%;
}

.gallery-photo-list.layout-mosaic .gu-photo-card__media {
    height: 100%;
}

.gallery-photo-list.layout-mosaic .gu-photo-card__link {
    height: 100%;
}

.gallery-photo-list.layout-mosaic .gu-photo-card__grid-info {
    display: none;
}

.gallery-photo-list.layout-mosaic .gu-photo-card__img {
    height: 100%;
    width: 100%;
    aspect-ratio: unset;
    object-fit: cover;
}

.gu-photo-card {
    position: relative;
    background: #111;
    display: block;
}

.gu-photo-card__media {
    position: relative;
    overflow: hidden;
    background: #111;
}

.gu-photo-card__link {
    display: block;
    text-decoration: none;
}

.gu-photo-card__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s, transform 0.3s;
}

.gu-photo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 55%);
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.25s;
}

.gu-photo-card__link:hover .gu-photo-card__overlay {
    opacity: 1;
}

.gu-photo-card__link:hover .gu-photo-card__img {
    opacity: 0.88;
    transform: scale(1.025);
}

.gu-photo-card__caption {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 4px;
    font-weight: 500;
}

.gu-photo-card__photographer {
    color: #ddd;
    font-size: 1.15rem;
    display: block;
}

.gu-photo-card__date {
    color: #aaa;
    font-size: 1.1rem;
    display: block;
    margin-top: 2px;
}

/* grid card fills its cell */
.gallery-photo-list.layout-grid {
    align-items: start;
}

.gallery-photo-list.layout-grid .gallery-photo-card {
    display: block;
}

.gallery-photo-list.layout-grid .gu-photo-card {
    margin-bottom: 0;
}

.gallery-more-link {
    margin: 20px 0 12px;
    text-align: center;
}

.gallery-more-link .btn {
    padding: 10px 32px;
    font-size: 1.4rem;
    border: 2px solid #111;
    color: #111;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.gallery-more-link .btn:hover {
    background: #111;
    color: #fff;
}

/* always visible in grid */
.gu-photo-card__grid-info {
    padding: 6px 4px 4px;
    background: #fff;
}

.gu-photo-card__grid-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.25rem;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 3px;
}

.gu-photo-card__grid-title:hover {
    color: #26aae2;
}

.gu-photo-card__grid-date {
    display: block;
    font-size: 1.15rem;
    color: #26aae2;
    text-decoration: none;
}

.gu-photo-card__grid-date:hover {
    text-decoration: underline;
}

.gu-photo-card__grid-photographer {
    display: block;
    font-size: 1.15rem;
    color: #555;
    margin-top: 2px;
}
