resize ahmet

This commit is contained in:
esef committed 2025-12-28 15:38:32 +03:00
1 parent 000d310baf
commit d1eaf62ff0
2 files changed
+34 -1

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
<link rel="stylesheet" href="style/styles.css">
<link rel="stylesheet" href="style/about.css">
<link rel="stylesheet" href="style/gallery.css">
<link rel="stylesheet" href="style/ahmet.css">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<title>Esef</title>
</head>
@@ -30,7 +31,7 @@
</section>
<section id="ahmet" class="tab-content">
<div id="ahmet-container" class="gallery-grid">
<div id="ahmet-container">
</div>
</section>
+32
View File
@@ -0,0 +1,32 @@
/* Specific button for Ahmet Museum */
#ahmet-btn {
background-color: aliceblue;
color: #153dee;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
transition: box-shadow 0.3s ease;
}
#ahmet-btn:hover {
box-shadow: 0 0 10px #02e3ff;
}
/* The Grid Container */
#ahmet-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px; /* Slightly bigger gap looks better with smaller photos */
padding: 70px;
}
/* The Images - RESIZED */
#ahmet-container img {
width: 100%;
max-width: 250px; /* This is where the magic happens! */
height: auto;
border-radius: 8px;
object-fit: cover;
margin: 0 auto; /* Centers the image in its grid cell */
}