/* CSS Document */

.gridgallery {
display: block; }

.gridgallery .flexgallery-row { 
display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gridgallery .flexgallery-row .flexgallery-item { display: none; float: left;
    margin: 0%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    height: 100%; }

.gridgallery .flexgallery-row .flexgallery-item:nth-child(1) {
	grid-column: auto / span 3 !important;
    grid-row: auto / span 2 !important;
    aspect-ratio: 3 / 2;
    width: auto !important; }
.gridgallery .flexgallery-row .flexgallery-item:nth-child(1),
.gridgallery .flexgallery-row .flexgallery-item:nth-child(2),
.gridgallery .flexgallery-row .flexgallery-item:nth-child(3),
.gridgallery .flexgallery-row .flexgallery-item:nth-child(4),
.gridgallery .flexgallery-row .flexgallery-item:nth-child(5) { display: grid; }


.ccm-block-gallery .ccm-block-gallery-image {
    padding-top: 0;
    height: 100% !important;    border-radius: 0;
}
.gridgallery .ccm-block-gallery-image-overlay-color { 
background-color: rgba(255,255,255, 0.5);   border-radius: 0; }

.mfp-img { position: relative; max-height: 90vh !important; max-width: 100% !important; }
.mfp-bottom-bar { padding: 5px 25px !important; }
.mfp-counter { top: 5px !important; right: 25px !important; }
.mfp-iframe-holder .mfp-close, .mfp-image-holder .mfp-close { right: 4px !important; }

.mfp-image-holder .mfp-content,
.mfp-bottom-bar { max-width: 90%!important; }

.mfp-gallery .mfp-image-holder .mfp-figure {
background: none !important; }
.mfp-figure figure { background: none !important; }
.mfp-figure figure:before { 
position: absolute; top: 0; left: 0; width:100%; height: 100%; 
background: none; content:''; z-index: 0; }

.gridgallery .flexgallery-row .flexgallery-item:after{ 
	content: '';
        position: absolute;
        top: 0;
        right: 15px;
        width: 75px;
        height: 100px;
        z-index: 1;
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        background: #fff url('https://www.broderhomes.com/download_file/b656cf45-13d3-4c42-92f4-c7b3dc50e365/9') no-repeat center;
		background-size: contain;
		box-shadow: 3px 3px 5px rgba(0,0,0,0.25);
	}

@media screen and (max-width: 1000px)
{ 
.gridgallery .flexgallery-row .flexgallery-item:nth-child(1) {
	grid-column: auto / span 10 !important;
    grid-row: auto / span 2 !important;
    aspect-ratio: 3 / 2;
    width: auto !important; }
	
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(1):before{ 
	content: '\f302';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4em;
        color: #fff;
        background: rgba(0, 0, 0, 0.35);
	}
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(1) { display: grid; }
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(2),
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(3),
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(4),
	.gridgallery .flexgallery-row .flexgallery-item:nth-child(5) { display: none; }
}
