#images-section {
    display: flex;
    flex-wrap: wrap;
}
    #images-section::after {
        content: '';
        flex-grow: 999999999;
    }

div.img-wrapper {
    background-color: rgb(200, 200, 200);
    position: relative;
    margin: 2px;
}
i.gallery-item-i{
	 /* text-align: center;  GW 2025-06-23 added */
}
img.gallery-item {
    top: 0;
    width: 100%;
    vertical-align: bottom;
	/* text-align: center;   GW 2025-06-23 added */
}

/* The outermost modal image container */
#modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 5;		/* In front of thumbnails but behind the main menu */
}

#modal-container.blowup {
    z-index: 20;
    transform: scale(1);
}
#modal-container.blowup .modal-background {
    background: rgba(0, 0, 0, 0.7);
}
#modal-container.blowup .modal-background .modal {
    animation: blowUpModal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* per coverage restored 25-apr-2020 1:22 pm   REM1 4:31 pm OK
#modal-container.blowup + .content {
    z-index: 1;
    animation: blowUpContent 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
*/

/* .modal-background 9:14 pm   - restored 25-Apr-2020 1:00 pm REM2 4:34 pm - NEEDED */
#modal-container.blowup.out {
    animation: blowUpModalTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


/* 25-Apr - 3:57pm added back .modal-background  REM2 4:34 pm - NEEDED */
#modal-container.blowup.out .modal-background {
    animation: blowUpModalTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


/* REM2 4:34 pm - NEEDED */
#modal-container.blowup.out .modal-background .modal {
    animation: blowUpModalTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


/* per coverage, but restored 25-Apr-2020 1:00 pm REM2 4:34 pm
#modal-container.blowup.out + .content {
    animation: blowUpContentTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
*/

#modal-container .modal-background {
    display: table-cell;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    vertical-align: middle;
}

/* REM9 - I don't think there is a "modal" class
but on testing this removal results in misplaced next/prev buttons
and missized tall images - RESTORE !! */
#modal-container .modal-background .modal {
    position: absolute;
    top: 15%;
    left: 10%;
    bottom: 15%;
    right: 10%;
}

/* 6:24 pm  - restored 25-Apr-2020 12:11 pm    1:32 pm added back ".modal-img-wrapper" */
/* REM3  - OK
#modal-container .modal-background .modal .modal-img-wrapper{
    display: contents;
}
*/

/* per coverage
#modal-container .modal-background .modal h2 {
    font-size: 25px;
    line-height: 25px;
    margin-bottom: 15px;
}
*/

#modal-container .modal-background .modal p {
    font-size: 18px;
    line-height: 22px;
}

/* per coverage  25-Apr-2020 1:37 pm - restored */
/* REM4  - OK
#modal-container .modal-background .modal .modal-svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 3px;
}
*/

/*
#modal-container .modal-background .modal .modal-svg rect {
    stroke: #fff;
    stroke-width: 2px;
    stroke-dasharray: 778;
    stroke-dashoffset: 778;
}
*/ 

/* restored 25-Apr-2020 1:43 pm */
/* REM5   -  OK
.content {
    min-height: 100%;
    height: 100%;
    background: white;
    position: relative;
    z-index: 0;
}
*/

/*
.content h1 {
    padding: 75px 0 30px 0;
    text-align: center;
    font-size: 30px;
    line-height: 30px;
}

/* restored 25-Apr 2:12 pm */
/* REM6  - OK
.content .buttons {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}
.content .buttons .button {
    display: inline-block;
    text-align: center;
    padding: 10px 15px;
    margin: 10px;
    background: red;
    font-size: 18px;
    background-color: #efefef;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.content .buttons .button:hover {
    color: white;
    background: #009bd5;
}
end of REM6 */


/* restored 25-Apr-2020 1:47 pm */
/* REM7   -  NO - this is needed!! */
@keyframes blowUpContent {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    99.9% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(0);
    }
}
@keyframes blowUpContentTwo {
    0% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes blowUpModal {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes blowUpModalTwo {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}
/* End of REM7 */

.modal-close-button{
    color: #fff;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 11px;
    background: rgba(207, 47, 47, 0.7);
    cursor: pointer;
    z-index: 1;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}
    .modal-close-button:hover{
        background: rgb(207, 47, 47);
    }
    .modal-close-button span {
        display: block;
        transform: rotate(45deg) !important;
        font-size: 1.5rem;
        font-weight: bold;
        user-select: none;
        -ms-user-select: none;
    }
    img.modal-img{
        max-width: 100%;
        max-height: 100%;
        border: 5px solid #fff;
		display: block;   /* GW addition to horizontally center the enlarged image */
        margin: auto;
        background-color: #fff;
    }
    
	/* Change the cursor to a pointer when hovering over a gallery image */
	.hover-pointer{
            cursor: pointer;
        }

    .modal-prev-button, .modal-next-button, .modal-caption {
        cursor: pointer;
        position: absolute;
        width: auto;
        padding: 11px 20px;
        color: #000;
        font-weight: bold;
        font-size: 25px;
        transition: 0.6s ease;
        user-select: none;
        -webkit-user-select: none;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 25px;
        margin-top: -25px;
    }
    .modal-prev-button:hover, .modal-next-button:hover {
        background-color: #fff;
        color: #000;
    }
    
    .modal-prev-button {
        left: 5px;
    }
    .modal-next-button {
        right: 5px;
    }


	.modal-caption {
		position: static;
		font-size: 18px;
		text-align: center;
		width: max-content;
		margin: auto;
		padding: 5px;
		cursor: auto;
	}

/* coverage (sort of)  added back 25-Apr-2020 2:02 pm */
/* REM8 - OK
    @media only screen and (max-width: 767px){
        .modal-prev-button, .modal-next-button{
            bottom: 5px;
            top: auto;
            padding: 0px 10px;
            padding-bottom: 3px;7
            font-size: 20px;
        }
        .modal-close-button{
            padding: 0px 6px;
            padding-right: 7px;
            font-size: 20px;
        }
    }
*/
