.thumbnails {
    max-width:1110px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    flex-flow: row wrap;
    row-gap: 30px;
    column-gap: 0px;
}

.thumbnail-plus-icon {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 48px;
    color: #555;
    padding: 15px 20px;
    font-family: "Figtree-Light";
}

.thumbnail-plus-icon img {
    width: 100%;
    height: 100%;
}

.thumbnails .hidden {
    display: none;
}

.hidden {
    display:none!important;
}

.thumbnails .thumbnail-cell {
    position: relative;
    width: 48%;
    min-height: 215px;
    padding: 30px;
    background-size: cover;
    background-position: center;
    background-color: #999;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.thumbnails .video-feature {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    margin-bottom: 30px;
}

.thumbnails .feature-image {
    width: 100%;
    height:550px;
    overflow: hidden;
    display: flex;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    background-size:cover;
    align-self:center;
    flex-flow:column;
    padding:40px;
    color:#fff;
    text-align: center;
    border-radius:0;
    text-decoration:none;
}

.feature-image *{
    color:#fff;
}

.thumbnails .feature-image .feature-header {
    font-family:'Figtree-Bold';
    font-size: 52px;
    padding-bottom:15px;
    line-height: 1.1em;
    margin:0px;
}

.thumbnails .feature-image .feature-subheader {
    font-family:'Figtree-Regular';
    font-size:22px;
    color:#fff;
}

.thumbnails .feature-image .feature-link-container {
    margin-top: 50px;
}

.thumbnails .feature-image .feature-link-container div {
    font-family: 'Figtree-Bold';
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    height: 45px;
    color: #fff;
    gap: 15px;
}
.feature-link-container a:visited, .feature-link-container a:hover, .feature-link-container a:focus {
	color:#fff;
	}

.thumbnails .feature-image .feature-link-container div .feature-link-icon {
    height:100%;
} 

.thumbnails .station-cell {
    position: relative;
    width: 48%;
    min-height: 315px;
    padding: 50px;
    background-size: cover;
    background-position: center;
    background-color: #444;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration:none;
}

.thumbnails a.station-cell:focus {
    color:#fff!important;
}

.thumbnails .station-cell div:hover, .thumbnails .station-cell div:active, .thumbnails .station-cell div:visited, .thumbnails .station-cell div:focus, .thumbnails .station-cell div::selection {
    color:#fff;
}

.thumbnails .station-cell .station-header-container .station-header {
    font-family: 'Figtree-Bold';
    font-size: 35px;
    padding-bottom: 20px;
    line-height: 1.1em;
}

.thumbnails .station-cell .station-header-container .station-subheader {
    font-family: 'Figtree-Regular';
}

.thumbnails .station-cell .station-icon-link-container {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    gap:10px;
}

.thumbnails .station-cell .station-icon-link-container .station-link-button {
    display: flex;
    gap: 10px;
    color: #d42b1e;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Figtree-Bold';
    color: #fff;
    text-decoration: none;
    align-items: center;
}

.thumbnails .station-cell .station-icon {
    width: 35px;
    height: 35px;
}

.thumbnails .thumbnail-cell .thumbnail-link-container {
    margin-top: 20px;
    font-size: 20px;
}

.thumbnails .thumbnail-cell .thumbnail-link-container a.thumbnail-link {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-family: 'Figtree-Bold';
}

.thumbnails .thumbnail-cell .thumbnail-link-container a.thumbnail-link:visited {
    color: white;
}

.thumbnails .thumbnail-cell .thumbnail-link-container a.thumbnail-link::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background-color: #fff;
    color: #fff;
    bottom: -0.1em;
    left: 0;
}

.thumbnail-link-container a:visited {
    color: white;
}

.thumbnails .thumbnail-cell.circle {
    border-radius: 50%;
    overflow: hidden;
    height: auto;
    aspect-ratio: 1/1;
    max-height: unset;
    min-height: unset;
    width: 100%;
    max-width: 32%;
    min-width: unset;
    margin: 0px;
    justify-content: center;
    align-items: center;
}

.thumbnails .thumbnail-cell.circle .thumbnail-plus-icon {
    display:none;
}

.thumbnails .thumbnail-cell.circle.active {
    border-radius: 50%; 
}

.thumbnails .thumbnail-cell.circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
}

.thumbnails .thumbnail-cell.circle .icon-header-container {
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex;
    justify-content: center;
}

.thumbnails .thumbnail-cell.circle .icon-header-container {
    justify-content: center;
    align-items: center;
}

.thumbnails .thumbnail-cell.circle .icon-header-container .thumbnail-header {
    font-family: 'Figtree-Bold';
    font-weight:normal;
    color: #fff;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    align-self: center;
    line-height: 1.2em;
}

.thumbnails .thumbnail-cell.circle .thumbnail-toggle-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: auto;
    display: flex;
    justify-content: center;
}

.thumbnails .thumbnail-cell.circle .thumbnail-toggle-button .circle-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.thumbnail-content-text {
    cursor: default;
}

.thumbnails .thumbnail-cell.circle:hover .thumbnail-content {
    top: 0px;
    height: 100%;
    font-size: 20px;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    text-align: center;
    width: 100%;
}

.thumbnail-content strong {
    padding-top: 10px;
    font-family: 'Figtree-Bold';
    font-weight: normal;
}

.thumbnails .thumbnail-cell.circle:hover .icon-header-container .thumbnail-header,
.thumbnails .thumbnail-cell.circle.hovered .icon-header-container .thumbnail-header {
    display: none;
}

.thumbnails .thumbnail-cell.circle:hover .icon-header-container {
    display: none;
}

.thumbnails .thumbnail-cell.hidden {
    display: none;
    animation: fadeIn 200ms ease-in-out 0s infinite alternate forwards;
}

.thumbnails .thumbnail-cell:hover,
.thumbnails .thumbnail-cell.hovered {
    background-image: none !important;
    justify-content: flex-start;
}

.thumbnails .thumbnail-cell.no-rollover img.thumbnail-icon {
    height: 70px;
}

.thumbnails .thumbnail-cell:hover .thumbnail-header,
.thumbnails .thumbnail-cell.hovered .thumbnail-header,
.thumbnails .thumbnail-cell:hover .thumbnail-icon,
.thumbnails .thumbnail-cell.hovered .thumbnail-icon,
.thumbnails .thumbnail-cell:hover .thumbnail-toggle-button,
.thumbnails .thumbnail-cell.hovered .thumbnail-toggle-button {
    display: none;
}

.thumbnails .thumbnail-cell .thumbnail-toggle-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #545861;
    font-size: 35px;
    cursor: pointer;
}

.thumbnails .thumbnail-cell .icon-header-container {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.thumbnails .thumbnail-cell .icon-header-container .thumbnail-icon {
    width: 50px;
    height: 50px;
    margin: 0 0 20px 0;
}

.thumbnails .thumbnail-cell .icon-header-container .thumbnail-header {
    font-family: 'Figtree-Light';
    margin: 0;
    color: #545861;
    font-size: 38px;
}

.thumbnails .airport-cell {
    position: relative;
    width: 48%;
    min-height: 250px;
    padding: 30px;
    background-size: cover;
    background-position: center;
    background-color: #444;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.thumbnails .airport-cell .airport-icon-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.thumbnails .airport-cell .airport-icon-header-container .airport-header {
    font-family: 'Figtree-Bold';
    font-size: 64px;
    margin: 0 0 0 15px;
}

.thumbnails .airport-cell .airport-icon-header-container .airport-icon {
    width: 55px;
}

.thumbnails .airport-cell .airport-content {
    margin-top: 10px;
    font-family: 'Figtree-Light';
    font-size: 18px;
    line-height: 1.25em;
}

.thumbnails .airport-cell .airport-link-container {
    margin-top: 10px;
}

.thumbnails .airport-cell .airport-link-container a {
    text-decoration: none;
    color: #fff;
    font-family: 'Figtree-Bold';
    font-size: 16px;
}

.no-rollover .thumbnail-cell {
    pointer-events: none;
}

.no-rollover .thumbnail-content {
    display: none !important;
}

.no-rollover .hovered .thumbnail-content {
    display: none !important;
}

.thumbnails.no-rollover .thumbnail-cell:hover,
.thumbnails.no-rollover .thumbnail-cell.hovered {
    background-image: inherit;
    justify-content: flex-start;
    background-color: inherit;
}

.thumbnails.no-rollover .thumbnail-cell:hover .thumbnail-header,
.thumbnails.no-rollover .thumbnail-cell.hovered .thumbnail-header,
.thumbnails.no-rollover .thumbnail-cell:hover .thumbnail-icon,
.thumbnails.no-rollover .thumbnail-cell.hovered .thumbnail-icon,
.thumbnails.no-rollover .thumbnail-cell:hover .thumbnail-toggle-button,
.thumbnails.no-rollover .thumbnail-cell.hovered .thumbnail-toggle-button,
.thumbnails.no-rollover .thumbnail-cell .thumbnail-content.hidden {
    display: block;
}

.thumbnails.no-rollover .thumbnail-content {
    display: none;
}

.thumbnail-cell.with-header-icon .thumbnail-content .thumbnail-content-text {
    font-size: 18px;
}

.thumbnail-cell.circle .icon-header-container h4.thumbnail-header {
    padding: 0 50px;
    font-size: 28px;
    margin: 0;
    width: 100%;
}

.thumbnails.no-rollover .thumbnail-cell.circle .icon-header-container h4.thumbnail-header {
    font-size: 22px;
    padding: 0 70px;
}

.thumbnail-cell.with-header-icon {
    padding:30px;
}

.thumbnail-cell.with-header-icon.circle .icon-header-container .thumbnail-icon {
    width: 100%;
    height: 70px;
    margin: 0 0 10px 0;
}

.thumbnail-cell.with-header-icon.circle .icon-header-container {
    justify-content: center;
    align-items: center;
}

.see-more-link-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.see-more-link-container a {
    width: 240px;
    text-align: center;
    background-color: var(--boingo-red);
    padding: 10px 0;
    color: white;
    text-decoration: none;
    margin: 30px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.see-more-link-container a:hover {
    text-decoration: none;
    color: white;
    background-color: var(--boingo-dark-red);
}

.see-more-link-container a:visited {
    color: white !important;
}

a.see-more-link:hover, a.see-more-link:active, a.see-more-link:focus {
    text-decoration: none;
    color: white;
}

@media screen and (max-width:1024px) {

    .thumbnails .feature-image {
        display: flex;
        flex-flow: column;
        text-align: unset;
        padding: 30px;
        gap: 10px;
        height: 100%;
        justify-content: space-between;
        margin-bottom: 0;
        border-radius: 0px;
        min-height: 300px;
        width: 100%;
        padding: 30px;
        height: auto;
    }

    .feature-header-container {
        width:100%;
        }

    .thumbnails .feature-image .feature-link-container {
        margin-top: 0px;
        align-self: flex-start;
    }

    .thumbnails .feature-image .feature-link-container a{
        justify-content: unset;
        max-height: 35px;
        margin: 0px;
        gap: 10px;
        font-size: 15px;
    }

    .thumbnails .feature-image .feature-header {
        font-size:35px;
    }

    .thumbnails .feature-image .feature-subheader {
        font-size:16px;
    }

    .thumbnail-cell .thumbnail-content {
        position: relative;
        top: unset;
        text-align: left;
    }

    .see-more-link-container {
        font-size: 18px;
    }

    .thumbnails .thumbnail-cell {
        width: 47%;
        min-height: 224px;
        padding: 40px 25px;
    }

    .thumbnails .airport-cell {
        width: 47%;
        min-height: 300px;
    }

    .thumbnails {
        gap: 10px;
        margin: 0 auto;
        flex-flow: column;
        padding: 0px;
    }

    .thumbnails .station-cell {
        width: 100%;
        min-height: 300px;
        padding: 30px
    }

    .thumbnails .station-cell:last-of-type {
        margin-bottom: 30px;
    }

    .thumbnail-content {
        position: absolute;
        top: 33%;
        text-align: center;
        font-size: 18px;
    }

    .thumbnails .thumbnail-cell {
        width: 100%;
        min-height: 224px;
    }

    .thumbnails .thumbnail-cell.circle {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-height: unset;
        min-height: unset;
        max-width: unset;
        min-width: unset;
    }

    .thumbnails .thumbnail-cell.circle .thumbnail-content {
        position: absolute;
        text-align: center;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-content: center;
        flex-flow: column;
        align-items: center;
        height: 100%;
    }

    .thumbnails .thumbnail-cell.circle .icon-header-container {
        justify-content: center;
        align-items: center;
        height: 100%;
        display: flex;
        position: relative;
        align-content: center;
        top: 0;
    }

    .thumbnails .thumbnail-cell .icon-header-container .thumbnail-header {
        font-size: 32px;
    }

    .thumbnails .thumbnail-cell .thumbnail-toggle-button {
        position: absolute;
        bottom: 10px;
        right: 10px;
        font-size: 38px;
        cursor: pointer;
    }

    .thumbnails .thumbnail-cell .icon-header-container .thumbnail-icon {
        margin: 0 0 10px 0;
    }

    .thumbnails .airport-cell {
        width: 100%;
    }

    .see-more-link-container a {
        width: 100%;
    }

    .thumbnails .thumbnail-cell {
        touch-action: none; /* Prevents default touch actions */
        -webkit-tap-highlight-color: transparent; /* Removes tap highlight on iOS */
    }
    
    /* Prevent text selection during touch interactions */
    .thumbnails .thumbnail-cell,
    .thumbnails .thumbnail-content,
    .thumbnails .thumbnail-header {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Ensure smooth transitions on mobile */
    .thumbnails .thumbnail-cell .thumbnail-content {
        transition: opacity 0.3s ease;
    }
    
    /* Force hardware acceleration for smoother animations */
    .thumbnails .thumbnail-cell {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        /* Fix for Safari flex gap issues */
        .thumbnails {
            gap: 0;
            margin: 0 -20px;
            padding: 0 35px;
        }

        .thumbnails > * {
            margin: 20px;
        }

        /* Fix for Safari border-radius clipping */
        .thumbnails .thumbnail-cell.circle {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            backface-visibility: hidden;
        }

        /* Fix for Safari transition flickering */
        .thumbnails .thumbnail-cell {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            -webkit-perspective: 1000;
        }

        /* Fix for Safari background-size cover */
        .thumbnails .feature-image,
        .thumbnails .station-cell,
        .thumbnails .thumbnail-cell {
            -webkit-background-size: cover;
            background-size: cover;
        }

        /* Fix for Safari flex alignment */
        .thumbnails .thumbnail-cell .icon-header-container {
            -webkit-box-align: start;
            -webkit-align-items: flex-start;
        }

        /* Fix for Safari clip-path */
        .thumbnails .thumbnail-cell.circle {
            -webkit-clip-path: circle(50% at 50% 50%);
        }
    }
}

@media screen and (max-width:1024px) {
    @supports (-webkit-appearance:none) {
        /* Mobile Safari fixes */
        .thumbnails {
            margin: 0;
            padding: 0 30px;
            gap: 30px;
        }

        .thumbnails.no-rollover {
            padding:0 5px!important;
        }

        .thumbnails.rectangle-thumb.no-rollover {
            padding:0 25px!important;
        }

        .thumbnails > * {
            margin: 5px 0;
        }
    }
}

/* Content state management */
.thumbnails .thumbnail-cell {
    position: relative;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.thumbnails .thumbnail-cell .thumbnail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background-color: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Active states */
.thumbnails .thumbnail-cell.active .thumbnail-content,
.thumbnails .thumbnail-cell.hovered .thumbnail-content {
    opacity: 1;
    visibility: visible;
}

.thumbnails .thumbnail-cell .thumbnail-content-text {
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: 'Figtree-Regular';
}

/* Remove the .hidden class override for thumbnail content */
.thumbnails .thumbnail-cell .thumbnail-content.hidden {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
}

/* Circle specific adjustments */
.thumbnails .thumbnail-cell.circle .thumbnail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.thumbnails .thumbnail-cell.circle .thumbnail-content-text {
    margin: 0;
    width: 100%;
}

.thumbnails .thumbnail-cell.circle .thumbnail-toggle-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: auto;
    display: flex;
    justify-content: center;
}

.thumbnails .thumbnail-cell.circle .thumbnail-toggle-button .circle-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.thumbnails .thumbnail-cell.circle .thumbnail-link {
    color: #fff;
    text-decoration: underline;
}

/* Mobile adjustments */
@media screen and (max-width:1024px) {
    .thumbnails .thumbnail-cell {
        touch-action: none;
    }
    
    .thumbnails .thumbnail-cell .thumbnail-content {
        padding: 25px;
    }

    .thumbnails .thumbnail-cell .thumbnail-content-text {
        font-size: 20px;
        line-height: 1.3;
    }
}