* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.slideshow {
    height: 100%;
    
}

/* SLIDESHOW GALLERY STYLES */
.CSSgal {
    position: relative;
    overflow: hidden;
    height: 100%;
   
}

/* SLIDER */
.CSSgal .slider {
    height: 90%;
    width: 100%;
    white-space: nowrap;
    font-size: 0;
    transition: 0.8s;
}

/* INDIVIDUAL SLIDES */
.CSSgal .slider div {
    font-size: 1rem;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
    height: 100%;
    width: 100%;
    position: relative;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
    display: flex;
    
}


.CSSgal .slider img {
    display: block;
    width: 100%;
    height: auto;
    transition: 0.8s;
    border-radius: 10px; 
}


.CSSgal .slider div p{
    position: absolute;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px;
    width: calc(100% - 40px); 
    text-align: center;
    margin: 0;
    border-radius: 5px; 
    text-shadow: black 0px 0px 10px;
}


.CSSgal .prevNext {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 100%;
    height: 0;
}

.CSSgal .prevNext > div+div {
    visibility: hidden; 
}

.CSSgal .prevNext a {
    background: #fff;
    position: absolute;
    width: 60px;
    height: 60px;
    line-height: 60px; 
    text-align: center;
    opacity: 0.7;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 0;
}

.CSSgal .prevNext a:hover {
    opacity: 1;
}

.CSSgal .prevNext a+a {
    left: auto;
    right: 0;
}


.CSSgal .bullets {
    position: absolute;
    z-index: 2;
    bottom: 0;
    padding: 10px 0;
    width: 100%;
    text-align: center;
}

.CSSgal .bullets > a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
    background: rgba(255, 255, 255, 1);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.CSSgal .bullets > a+a {
    background: rgba(255, 255, 255, 0.5);
}

.CSSgal .bullets > a:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* NAVIGATION BUTTONS */
.CSSgal > s:target ~ .bullets > * {
    background: rgba(255, 255, 255, 0.5);
}

/* ACTIVE */
#s1:target ~ .bullets > *:nth-child(1) {
    background: rgba(255, 255, 255, 1);
}
#s2:target ~ .bullets > *:nth-child(2) {
    background: rgba(255, 255, 255, 1);
}
#s3:target ~ .bullets > *:nth-child(3) {
    background: rgba(255, 255, 255, 1);
}
#s4:target ~ .bullets > *:nth-child(4) {
    background: rgba(255, 255, 255, 1);
}


.CSSgal > s:target ~ .prevNext > * {
    visibility: hidden;
}

/* ACTIVE */
#s1:target ~ .prevNext > *:nth-child(1) {
    visibility: visible;
}
#s2:target ~ .prevNext > *:nth-child(2) {
    visibility: visible;
}
#s3:target ~ .prevNext > *:nth-child(3) {
    visibility: visible;
}
#s4:target ~ .prevNext > *:nth-child(4) {
    visibility: visible;
}

/* SLIDER ANIMATION POSITIONS */
#s1:target ~ .slider {
    transform: translateX(0%);
    -webkit-transform: translateX(0%);
}
#s2:target ~ .slider {
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
}
#s3:target ~ .slider {
    transform: translateX(-200%);
    -webkit-transform: translateX(-200%);
}
#s4:target ~ .slider {
    transform: translateX(-300%);
    -webkit-transform: translateX(-300%);
}

@media (max-width: 768px) {
    .CSSgal .slider div p {
        position: relative; 
        bottom: auto;
        left: auto; 
        transform: none; 
        line-height: normal;
        margin-bottom: 10px; 
        font-size: 12px;
    }
}