html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: cursive;
}

body {
    background-color: antiquewhite;
}

.gallery__item {
    min-width: 30%;
    min-height: 80%;
    background-color: rgb(190, 141, 92);
    position: relative;
}

.gallery__wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.gallery__wrapper .gallery__item:nth-child(1) {
    background-color: rgb(207, 59, 248);
}
.gallery__wrapper .gallery__item:nth-child(2) {
    background-color: rgb(229, 51, 51);
}
.gallery__wrapper .gallery__item:nth-child(3) {
    background-color: rgb(253, 155, 155);
}
.gallery__wrapper .gallery__item:nth-child(4) {
    background-color: rgb(60, 216, 57);
}
.gallery__wrapper .gallery__item:nth-child(5) {
    background-color: rgb(255, 255, 255);
}
.gallery__wrapper .gallery__item:nth-child(5) .item__title {
    color: black;
}
.gallery__wrapper .gallery__item:nth-child(6) {
    background-color: rgb(158, 162, 158);
}
.gallery__wrapper .gallery__item:nth-child(7) {
    background-color: rgb(218, 154, 2);
}
.gallery__wrapper .gallery__item:nth-child(8) {
    background-color: rgb(42, 10, 207);
}
.gallery__wrapper .gallery__item:nth-child(9) {
    background-color: rgb(243, 206, 4);
}
.item__title {
	font-family: Arial;
    font-size: 28px;
    text-align: center;
    margin-top: 20px;
    color: white;
    font-weight: 500;
	}
.title {
	color: rgb(163, 0 , 0);
Text-align: center;
font-size: 36px; 
margin-left: 80px; 
margin-top: 30px;
font-family: Arial;

}
.bottom {
	color: rgb(163, 0 , 0);
Text-align: center;
font-size: 14px; 
margin-left: 100px; 
margin-top: 10px;
margin-bottom: 20px;
font-family: Arial;

}
.bot-tom {
	color: rgb(163, 0 , 0);
Text-align: center;
font-size: 14px; 
margin-left: -550px; 
margin-top: 10px;
margin-bottom: 20px;
font-family: Arial;
font-style: italic! important;

}

.gallery-img {
    object-fit: cover;
    width: 300px;
    max-height: 80%;
    display: block;
    position: relative;
    margin: 0 auto;
	margin-top: 10px;
}

.item__description {
	font-family: Arial;
	font-size: 16px;
    position: absolute;
    bottom: -25%; /* Initial position off the screen */
    left: 50%;
    max-width: 300px;

    transform: translate(-50%, -50%);
    color: white;
    font-weight: 10;
    transition: 0.9s ease-in-out; /* Adjust the duration as needed */
    opacity: 0;
}

.gallery__link {
    text-decoration: none;
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.gallery__link:hover .gallery-img {
    transition: 0.8s ease-in-out;
    -webkit-filter: brightness(60%);
}

.gallery__link:hover .item__description {
    bottom: 0;
    transform: translate(-50%, -40%);
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.gallery__link:not(:hover) .gallery-img {
    transition: 1s ease-in-out;
    -webkit-filter: brightness(100%);
}
@media screen and (max-width: 425px) {
    .item__description {
        display: block;
        opacity: 1;
        bottom: -100%;
        transform: translate(-50%, -260px);
        background-color: rgba(0, 0, 0, 0.8);
    }
}
@media screen and (max-width: 1920px) {
    .item__description {
        display: block;
    }
    .gallery__link:hover .item__description {
        transform: translate(-50%, -50%);
    }
}
@media screen and (max-width: 1700px) {
    .item__description {
        display: block;
    }
    .gallery__link:hover .item__description {
        transform: translate(-50%, -50%);
    }
}
@media screen and (max-width: 1440px) {
    .item__description {
        display: block;
    }
    .gallery__link:hover .item__description {
        transform: translate(-50%, -50%);
    }
}
@media screen and (max-width: 1141px) {
    .item__description {
        display: block;
    }
    .gallery__link:hover .item__description {
        transform: translate(-50%, -50%);
    }
}
@media screen and (max-width: 1024px) {
    .item__description {
        display: block;
    }
    .gallery__link:hover .item__description {
        transform: translate(-50%, -40%);
    }
}
