* {
  box-sizing: border-box;
}

body {
  background-color: #f1f1f1;
  padding: 20px;
  font-family: Arial;
}

/* myphotos index에서 사용(id가 아닌 class임에 유의) */
.container {
  max-width: 1100px;
  margin: auto;
  margin-bottom: 55px;
}

#header p {
  font-size: 16px;
}

#myBtnContainer {
  padding-left: 20px;
}

.column {
  padding: 8px;
  float: left;
  width: 23.99%;
  display: none;
}

/* Clear floats after rows */
.row:after {
  content: "";
  display: grid;
  clear: both;
}

/* photo_content */
.photo_content {
  background-color: white;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 1%;
}

.photo_content:hover {
  /* box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2); */
  border-radius: 1%;
}

.photo_content img {
  width: 100%;
  height: 182px;
  object-fit: cover;
}

/* HOVER 시 이미지 확대 효과 */
.enlarge {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  transform: translateZ(0);
}

.enlarge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s linear;
  /* border-radius: 2%; */
}

.enlarge:hover img {
  /* border-radius: 2%; */
  transform: scale(1.1);
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

.photo_btn {
  width: 80px;
  border: 1px solid silver;
  border-radius: 5%;
  outline: none;
  margin-bottom: 5px;
  padding: 10px 12px;
  background-color: white;
  cursor: pointer;
}

.photo_btn:hover {
  background-color: #ddd;
}

.photo_btn.active {
  background-color: dodgerblue;
  color: white;
}

.photo_btn.active:hover {
  background-color: darkblue;
  color: white;
}

.pic_date,
.pic_place,
.pic_read {
  font-size: 0.8rem;
  /* float: left; */
  display: inline-block;
  vertical-align: middle;
}

.pic_title {
  font-size: 1rem;
  margin: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pic_date {
  margin-right: 10px;
}

.pic_place {
  margin-right: 5px;
  color: #71b3e7;
  width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MEDIA QUERY */
@media screen and (max-width: 992px) {
  .column {
    width: 49.99%;
    justify-self: center;
  }

  .pic_place {
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media screen and (max-width: 700px) {
  /* 스마트폰에서 한 열로만 표시할 경우 활성화 */
  .column {
    /* width: 95%; */
  }

  .pic_place {
    display: none;
  }
}
