main {
    margin-top: 130px;
    margin-bottom: 50px;
}

/* share  */


button {
    margin: 20px auto;
    width: 270px;
    height: 60px;
    border: none;
    background: #7e7468;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

button::before,
button::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #000;
    transition: width 1s ease-in-out;
}

button:before {

    top: 0;
    left: 0;
}

button:after {

    bottom: 0;
    right: 0;
}

button:hover:before,
button:hover:after, button:active:before,
button:active:after {
    width: 100%;
}

.letters {
    width: 50px;
    height: 50px;
    perspective: 600px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;
}

.card_face {
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
}

.back {
    transform: rotateY(180deg);
}

button:hover .card {
    transform: rotateY(180deg);
}





.grid-h1 {
    display: block;
    margin: 30px;
    font-size: 18px;
    text-align: center;
    text-transform: capitalize;
    text-decoration: underline;
}

.grid-h1 a {
    color: var(--logo-darker-color);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.grid-item-a {
    margin: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.grid-item-a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grid-item-a img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-item-a:hover img {
    transform: scale(1.08);
}

.grid-item-a p {
    display: block;
    text-align: center;
    font-weight: bold;
    margin: 5px;
    font-size: 16px;
    text-transform: capitalize;
}



/* pagination */
.pagination-wrapper {
    display: block;
    text-align: center;
}

.pagination-wrapper nav {
    margin-top: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pagination-wrapper nav .relative.inline-flex {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination-wrapper nav span[aria-current="page"] {
    background-color: #1d4ed8;
    /* Blue-700 */
    color: white !important;
    border-color: #1d4ed8;
    font-weight: bold;
}

.pagination-wrapper nav a {
    transition: all 0.3s ease;
}

.pagination-wrapper nav a:hover {
    background-color: #e0f2fe;
    /* Blue-100 */
    color: #0c4a6e;
    /* Blue-900 */
    border-color: #38bdf8;
    /* Blue-400 */
}

.pagination-wrapper svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
    /* Gray-500 */
    transition: color 0.3s;
}

.pagination-wrapper nav a:hover svg {
    color: #0c4a6e;
    /* Blue-900 */
}

.pagination-wrapper nav .text-gray-700 {
    color: #334155 !important;
    /* Gray-800 */
}

.pagination-wrapper nav .text-gray-500 {
    color: #9ca3af !important;
    /* Gray-400 */
}

/* Adjust small screen pagination buttons */
@media (max-width: 640px) {

    .pagination-wrapper nav .sm\\:hidden a,
    .pagination-wrapper nav .sm\\:hidden span {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 6px;
    }
}






/* others */
.others {
    display: block;
    text-align: center;
    margin: 30px;
}

.others h2 {
    font-size: 18px;
    margin: 10px;
}

.others a {
    text-transform: capitalize;
    font-weight: bold;
    color: var(--logo-darker-color);
}



/* zoom image */


.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.image-preview img.preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.grid-finish-pic {
    cursor: zoom-in;
    /* height: auto !important; */
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.image-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-overlay.active img {
    transform: scale(1);
}

.image-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.image-overlay.closing img {
    transform: scale(0.9);
}