@charset "UTF-8";

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC：3列固定 */
  gap: 24px;
  box-sizing: border-box;
}
.photo-item {
position: relative;
display: block;
height: 0;
padding-bottom: 135%;
overflow: hidden;
background-color: #F5F5F5;
}

.photo-item img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
.photo-item:hover img {
	position: absolute;
	width: 110%;
	height: 110%;
	object-fit: cover;
	transition: all 0.3s;
}

/* スマホ（最大640px）は2列 */
@media only screen and (max-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  }
}